This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/66976] Compiler error for well-formed program with a definition of a constexpr function returning void


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]