http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58705
Bug ID: 58705 Summary: [4.7/4.8/4.9 Regression] [c++11] ICE with invalid initializer for _Complex variable Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org The following invalid code snippet (compiled with "-std=c++11") triggers an ICE since GCC 4.7.0: =============================== _Complex float f = {{}}; =============================== bug.cc:1:23: internal compiler error: Segmentation fault _Complex float f = {{}}; ^ 0xb15dff crash_signal ../../gcc/gcc/toplev.c:335 0x5e6d15 vec<constructor_elt_d, va_gc, vl_embed>::operator[](unsigned int) ../../gcc/gcc/vec.h:827 0x5e6d15 check_narrowing(tree_node*, tree_node*) ../../gcc/gcc/cp/typeck2.c:836 0x55e437 check_initializer ../../gcc/gcc/cp/decl.c:5669 0x570ccc cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/gcc/cp/decl.c:6356 0x65e7e7 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:16633 0x65ff2f cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:11047 0x643860 cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:10928 0x66aaae cp_parser_declaration ../../gcc/gcc/cp/parser.c:10825 0x6697ca cp_parser_declaration_seq_opt ../../gcc/gcc/cp/parser.c:10711 0x66b0e6 cp_parser_translation_unit ../../gcc/gcc/cp/parser.c:3989 0x66b0e6 c_parse_file() ../../gcc/gcc/cp/parser.c:30962 0x787f73 c_common_parse_file() ../../gcc/gcc/c-family/c-opts.c:1046 Please submit a full bug report, [etc.]