https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121214
Bug ID: 121214 Summary: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) with gcc.dg/asm-hard-reg-error-[45].c Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: stefansf at gcc dot gnu.org Target Milestone: --- Target: sparc*-sun-solaris2.11 The new gcc.dg/asm-hard-reg-error-[45].c tests cause an ICE on Solaris/SPARC (both 32 and 64-bit): +FAIL: gcc.dg/asm-hard-reg-error-4.c (test for errors, line 15) +FAIL: gcc.dg/asm-hard-reg-error-4.c (test for errors, line 18) +FAIL: gcc.dg/asm-hard-reg-error-4.c (internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in test, at gimplify_reg_info.h:48) +FAIL: gcc.dg/asm-hard-reg-error-4.c (test for excess errors) +FAIL: gcc.dg/asm-hard-reg-error-5.c (test for errors, line 10) +FAIL: gcc.dg/asm-hard-reg-error-5.c (test for errors, line 11) +FAIL: gcc.dg/asm-hard-reg-error-5.c (internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in test, at gimplify_reg_info.h:48) +FAIL: gcc.dg/asm-hard-reg-error-5.c (test for excess errors) /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/asm-hard-reg-error-4.c: In function 'test': /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/asm-hard-reg-error-4.c:15:3: error: matching constraint not valid in output operand /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/asm-hard-reg-error-4.c:15:3: error: matching constraint not valid in output operand /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/asm-hard-reg-error-4.c:18:3: error: matching constraint not valid in output operand /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/asm-hard-reg-error-4.c:15:3: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in test, at gimplify_reg_info.h:48 0x220b7b7 internal_error(char const*, ...) /vol/gcc/src/hg/master/local/gcc/diagnostic-global-context.cc:517 0x15e03b3 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /vol/gcc/src/hg/master/local/gcc/tree.cc:9211 0x114765f tree_class_check(tree_node*, tree_code_class, char const*, int, char const*) /vol/gcc/src/hg/master/local/gcc/tree.h:3878 0x114765f gimplify_reg_info::test(HARD_REG_SET const&, int) const /vol/gcc/src/hg/master/local/gcc/gimplify_reg_info.h:48 0x114765f gimplify_reg_info::test_alt_output(unsigned int, int) const /vol/gcc/src/hg/master/local/gcc/gimplify_reg_info.h:115 0x114765f parse_output_constraint(char const**, int, int, int, bool*, bool*, bool*, gimplify_reg_info*) /vol/gcc/src/hg/master/local/gcc/stmt.cc:463 0xd55c27 gimplify_asm_expr /vol/gcc/src/hg/master/local/gcc/gimplify.cc:7943 0xd381cf gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /vol/gcc/src/hg/master/local/gcc/gimplify.cc:20226 0xd3a18f gimplify_stmt(tree_node**, gimple**) /vol/gcc/src/hg/master/local/gcc/gimplify.cc:8572 0xd384af gimplify_statement_list /vol/gcc/src/hg/master/local/gcc/gimplify.cc:2292 0xd384af gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /vol/gcc/src/hg/master/local/gcc/gimplify.cc:20344 0xd3a18f gimplify_stmt(tree_node**, gimple**) /vol/gcc/src/hg/master/local/gcc/gimplify.cc:8572 0xd3abc3 gimplify_bind_expr /vol/gcc/src/hg/master/local/gcc/gimplify.cc:1687 0xd375c7 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /vol/gcc/src/hg/master/local/gcc/gimplify.cc:20094 0xd68fcb gimplify_stmt(tree_node**, gimple**) /vol/gcc/src/hg/master/local/gcc/gimplify.cc:8572 0xd68fcb gimplify_body(tree_node*, bool) /vol/gcc/src/hg/master/local/gcc/gimplify.cc:21200 0xd69743 gimplify_function_tree(tree_node*) /vol/gcc/src/hg/master/local/gcc/gimplify.cc:21409 0xaa0acb cgraph_node::analyze() /vol/gcc/src/hg/master/local/gcc/cgraphunit.cc:689 0xaa4793 analyze_functions /vol/gcc/src/hg/master/local/gcc/cgraphunit.cc:1265 0xaa5eb7 symbol_table::finalize_compilation_unit() /vol/gcc/src/hg/master/local/gcc/cgraphunit.cc:2574