http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60980
Bug ID: 60980 Summary: [4.9/4.10 Regression] ICE in build_special_member_call, at cp/call.c:7447 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppluzhnikov at google dot com Test case: struct x0 { x0 () = default; }; struct x1 { x0 x2[]; void x3 () { x1 (); } }; Using trunk @r209848 (2014-04-27 17:18:40 -0700 (Sun, 27 Apr 2014)): g++ -c -std=c++11 -c t.ii t.ii: In member function ‘void x1::x3()’: t.ii:10:13: internal compiler error: tree check: expected record_type or union_type or qual_union_type, have array_type in build_special_member_call, at cp/call.c:7447 x1 (); ^ 0xd6cad4 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/tree.c:9180 0x55d587 tree_check3 ../../gcc/tree.h:2761 0x55d587 build_special_member_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, int) ../../gcc/cp/call.c:7447 0x6b5597 build_value_init(tree_node*, int) ../../gcc/cp/init.c:348 0x6b5179 build_value_init_noctor(tree_node*, int) ../../gcc/cp/init.c:419 0x6b560c build_value_init(tree_node*, int) ../../gcc/cp/init.c:367 0x5fd734 build_functional_cast(tree_node*, tree_node*, int) ../../gcc/cp/typeck2.c:1898 0x6656a0 cp_parser_functional_cast ../../gcc/cp/parser.c:23323 0x65ed42 cp_parser_postfix_expression ../../gcc/cp/parser.c:5900 0x662193 cp_parser_unary_expression ../../gcc/cp/parser.c:7188 0x662e7f cp_parser_binary_expression ../../gcc/cp/parser.c:7893 0x663361 cp_parser_assignment_expression ../../gcc/cp/parser.c:8131 0x6658c3 cp_parser_expression ../../gcc/cp/parser.c:8293 0x6660ec cp_parser_expression ../../gcc/cp/parser.c:8332 0x6660ec cp_parser_expression_statement ../../gcc/cp/parser.c:9651 0x65afc8 cp_parser_statement ../../gcc/cp/parser.c:9502 0x65bdf9 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:9774 0x65bf66 cp_parser_compound_statement ../../gcc/cp/parser.c:9728 0x66d14b cp_parser_function_body ../../gcc/cp/parser.c:18755 0x66d14b cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:18791 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report.