This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61838] ICE on Windows with ctors defined outside class definitions
- From: "st at quanttec dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Sep 2014 19:40:08 +0000
- Subject: [Bug c++/61838] ICE on Windows with ctors defined outside class definitions
- Auto-submitted: auto-generated
- References: <bug-61838-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61838
Stephan Tolksdorf <st at quanttec dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |st at quanttec dot com
--- Comment #2 from Stephan Tolksdorf <st at quanttec dot com> ---
This regression from 4.8 seems to have been fixed on trunk but is still present
on the 4.9 branch. Could the fix be packported to 4.9?
Compiling the following simple snippet with "-std=c++11" produces a segfault
with 4.9:
template <typename... Ts> struct A {};
struct B { B(A<int>); };
B::B(A<int>) {}
cc1plus: internal compiler error: Segmentation fault
0x919b1f crash_signal
../../gcc/gcc/toplev.c:337
0x6a5ea2 analyze_functions
../../gcc/gcc/cgraphunit.c:1043
0x6a6f4f finalize_compilation_unit()
../../gcc/gcc/cgraphunit.c:2327
0x559ebb cp_write_global_declarations()
../../gcc/gcc/cp/decl2.c:4616