[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 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #8 from Marek Polacek --- Fixed.
[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 #7 from Marek Polacek --- Author: mpolacek Date: Thu Jun 20 22:35:34 2019 New Revision: 272527 URL: https://gcc.gnu.org/viewcvs?rev=272527=gcc=rev Log: PR c++/79781 * g++.dg/ext/goto1.C: New test. Added: trunk/gcc/testsuite/g++.dg/ext/goto1.C Modified: trunk/gcc/testsuite/ChangeLog
[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 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #6 from Marek Polacek --- This is what ICEd: void c() { static __int128_t d = (long)& - (long)& a: b:; } I'll add it.
[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 Paolo Carlini changed: What|Removed |Added CC||paolo.carlini at oracle dot com --- Comment #5 from Paolo Carlini --- Fixed in the released 7.1.0. Honestly, I'm not 100% sure we are clear to add such testcases to our own testsuite: can somebody confirm please?
[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 --- 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
[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 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2017-03-01 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Marek Polacek --- Probably started with r180707.
[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 #2 from Martin Liška --- There's back-trace coming from trunk: g++ const-init.cpp -std=c++14 -c const-init.cpp:91:17: internal compiler error: in assemble_integer, at varasm.c:2754 X x = {(long)}; ^ 0x1550515 assemble_integer(rtx_def*, unsigned int, unsigned int, int) ../../gcc/varasm.c:2754 0x1557347 output_constant ../../gcc/varasm.c:4804 0x154e841 assemble_variable_contents ../../gcc/varasm.c:2083 0x154f2a1 assemble_variable(tree_node*, int, int, int) ../../gcc/varasm.c:2259 0x1566fb0 varpool_node::assemble_decl() ../../gcc/varpool.c:588 0xc414c8 output_in_order ../../gcc/cgraphunit.c:2285 0xc41b95 symbol_table::compile() ../../gcc/cgraphunit.c:2525 0xc41dea symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2621
[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 #1 from Martin Liška --- Created attachment 40861 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40861=edit test-case