https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64768
Bug ID: 64768 Summary: internal compiler error: tree check: expected tree that contains ‘decl with RTL’ structure, have ‘field_decl’ in set_decl_rtl, at emit-rtl.c:1274 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org ./cc1 ice2.c ice2.c:2:12: error: array size missing in ‘a’ struct { A a; ^ ice2.c:2:8: internal compiler error: tree check: expected tree that contains ‘decl with RTL’ structure, have ‘field_decl’ in set_decl_rtl, at emit-rtl.c:1274 struct { A a; ^ 0xfad59a tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) /home/marek/src/gcc/gcc/tree.c:9462 0x672d2d contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) /home/marek/src/gcc/gcc/tree.h:2960 0x89dfd7 set_decl_rtl(tree_node*, rtx_def*) /home/marek/src/gcc/gcc/emit-rtl.c:1274 0xca6a3c relayout_decl(tree_node*) /home/marek/src/gcc/gcc/stor-layout.c:829 0x655c81 finish_decl(tree_node*, unsigned int, tree_node*, tree_node*, tree_node*) /home/marek/src/gcc/gcc/c/c-decl.c:4780 0x65d2f3 grokfield(unsigned int, c_declarator*, c_declspecs*, tree_node*, tree_node**) /home/marek/src/gcc/gcc/c/c-decl.c:7337 0x6b34d7 c_parser_struct_declaration /home/marek/src/gcc/gcc/c/c-parser.c:2986 0x6b2e22 c_parser_struct_or_union_specifier /home/marek/src/gcc/gcc/c/c-parser.c:2790 0x6b2070 c_parser_declspecs /home/marek/src/gcc/gcc/c/c-parser.c:2402 0x6b02f3 c_parser_declaration_or_fndef /home/marek/src/gcc/gcc/c/c-parser.c:1571 0x6b0109 c_parser_external_declaration /home/marek/src/gcc/gcc/c/c-parser.c:1452 0x6afd1c c_parser_translation_unit /home/marek/src/gcc/gcc/c/c-parser.c:1339 0x6d2ce1 c_parse_file() /home/marek/src/gcc/gcc/c/c-parser.c:15416 0x72b672 c_common_parse_file() /home/marek/src/gcc/gcc/c-family/c-opts.c:1052 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. typedef int A[]; struct { A a;