https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66976

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Anders Granlund from comment #0)
> For comparison Clang accepts the program without errors.

Not if you use -std=c++11 it doesn't.

Both GCC and Clang reject it with -std=c++11 and accept it with -std=c++14, as
expected.

N.B. we don't need the full output of compiling with -v, just the output of
'gcc -v' is enough (and much less verbose).

Reply via email to