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++/79781] ICE on valid C++ code with -std=c++14 (in assemble_integer, at varasm.c:2733)


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

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