http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55261
Bug #: 55261 Summary: [C++0x] ICE (SIGSEGV) when inheriting implicit constructor Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Created attachment 28652 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28652 reduced testcase I don't know if the code is valid. Compiler output: $ gcc testcase.C -std=c++11 testcase.C:4:8: internal compiler error: Segmentation fault struct B : A ^ 0xbc2e9f crash_signal /mnt/svn/gcc-trunk/gcc/toplev.c:333 0x6579f9 vec_t<tree_node*>::operator[](unsigned int) /mnt/svn/gcc-trunk/gcc/vec.h:487 0x6579f9 add_implicitly_declared_members /mnt/svn/gcc-trunk/gcc/cp/class.c:3016 0x65e2b4 check_bases_and_members /mnt/svn/gcc-trunk/gcc/cp/class.c:5343 0x663321 finish_struct_1(tree_node*) /mnt/svn/gcc-trunk/gcc/cp/class.c:6237 0x66558c finish_struct(tree_node*, tree_node*) /mnt/svn/gcc-trunk/gcc/cp/class.c:6545 0x69413e cp_parser_class_specifier_1 /mnt/svn/gcc-trunk/gcc/cp/parser.c:18231 0x69413e cp_parser_class_specifier /mnt/svn/gcc-trunk/gcc/cp/parser.c:18440 0x69413e cp_parser_type_specifier /mnt/svn/gcc-trunk/gcc/cp/parser.c:13568 0x6ab3cd cp_parser_decl_specifier_seq /mnt/svn/gcc-trunk/gcc/cp/parser.c:10893 0x6aee09 cp_parser_simple_declaration /mnt/svn/gcc-trunk/gcc/cp/parser.c:10492 0x6b0e57 cp_parser_block_declaration /mnt/svn/gcc-trunk/gcc/cp/parser.c:10441 0x6ba23b cp_parser_declaration /mnt/svn/gcc-trunk/gcc/cp/parser.c:10338 0x6b886d cp_parser_declaration_seq_opt /mnt/svn/gcc-trunk/gcc/cp/parser.c:10224 0x6b8b62 cp_parser_translation_unit /mnt/svn/gcc-trunk/gcc/cp/parser.c:3796 0x6b8b62 c_parse_file() /mnt/svn/gcc-trunk/gcc/cp/parser.c:28144 0x7bdbe4 c_common_parse_file() /mnt/svn/gcc-trunk/gcc/c-family/c-opts.c:1007 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.