This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79781] ICE on valid C++ code with -std=c++14 (in assemble_integer, at varasm.c:2733)
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 01 Mar 2017 14:57:31 +0000
- Subject: [Bug c++/79781] ICE on valid C++ code with -std=c++14 (in assemble_integer, at varasm.c:2733)
- Auto-submitted: auto-generated
- References: <bug-79781-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79781
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
With -std=c++0x GCC 4.6 says
const-init.cpp:33:29: error: ‘constexpr’ needed for in-class initialization of
static data member ‘d’ of non-integral type
const-init.cpp:34:28: error: ‘d’ was not declared in this scope
const-init.cpp:34:32: error: ‘constexpr’ needed for in-class initialization of
static data member ‘f’ of non-integral type
const-init.cpp:46:15: error: ‘d’ is not a member of ‘test2::A’
const-init.cpp:47:19: error: ‘d’ is not a member of ‘test2::A’
const-init.cpp:47:25: error: ‘f’ is not a member of ‘test2::A’
const-init.cpp:48:25: error: ‘struct test2::A’ has no member named ‘d’
and GCC 4.7:
const-init.cpp:91:17: internal compiler error: in assemble_integer, at
varasm.c:2552