This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66976] Compiler error for well-formed program with a definition of a constexpr function returning void
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Jul 2015 17:59:55 +0000
- Subject: [Bug c++/66976] Compiler error for well-formed program with a definition of a constexpr function returning void
- Auto-submitted: auto-generated
- References: <bug-66976-4 at http dot gcc dot gnu dot org/bugzilla/>
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).