[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 Markus Trippelsdorf trippels at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC||trippels at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Markus Trippelsdorf trippels at gcc dot gnu.org --- void became a literal type in C++14.
[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).