https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65228
Bug ID: 65228 Summary: libcc1: ICE: expected tree that contains ‘decl minimal’ structure, have ‘error_mark’ in start_decl Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: jan.kratochvil at redhat dot com CC: pmuldoon at redhat dot com Host: x86_64-linux-gnu Target: x86_64-linux-gnu FAIL: gcc (GCC) 5.0.0 20150226 (experimental) PATH="/home/jkratoch/redhat/gcchead-root/bin:$PATH" LD_LIBRARY_PATH=/home/jkratoch/redhat/gcchead-root/lib64 /home/jkratoch/redhat/gdb-clean/gdb/gdb -nx gdb -ex start -ex 'compile code -r __auto_type qwe = def' gdb command line:1:19: error: ‘def’ undeclared here (not in a function) *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_PRE_GENERICIZE | libcc1plugin PLUGIN_GGC_MARKING | libcc1plugin PLUGIN_PRAGMAS | libcc1plugin gdb command line:2:1: internal compiler error: tree check: expected tree that contains ‘decl minimal’ structure, have ‘error_mark’ in start_decl, at c/c-decl.c:4469 0xd41bd4 tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) /home/jkratoch/redhat/gcchead/gcc/tree.c:9462 0x605649 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) /home/jkratoch/redhat/gcchead/gcc/tree.h:2960 0x605649 start_decl(c_declarator*, c_declspecs*, bool, tree_node*) /home/jkratoch/redhat/gcchead/gcc/c/c-decl.c:4469 0x640dec c_parser_declaration_or_fndef /home/jkratoch/redhat/gcchead/gcc/c/c-parser.c:1802 0x65d317 c_parser_external_declaration /home/jkratoch/redhat/gcchead/gcc/c/c-parser.c:1452 0x65dbd9 c_parser_translation_unit /home/jkratoch/redhat/gcchead/gcc/c/c-parser.c:1339 0x65dbd9 c_parse_file() /home/jkratoch/redhat/gcchead/gcc/c/c-parser.c:15418 0x6b4062 c_common_parse_file() /home/jkratoch/redhat/gcchead/gcc/c-family/c-opts.c:1057 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. Compilation failed. (gdb) _ For gcc-5.0.0-0.15.fc23.x86_64 the same reproducer hangs due to FD not closed by the driver but that is a different bug. Filing as a tracker, I guess it is libcc1 specific so we should fix it.