https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102173
Bug ID: 102173
Summary: [12 Regression] ICEs
gcc.target/aarch64/sve/acle/general-c/type_redef_1.c
after recent error recovery patch
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: error-recovery, ice-on-invalid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/type_redef_1.c:5:9:
internal compiler error: tree check: expected class 'type', have 'exceptional'
(error_mark) in register_vector_type, at
config/aarch64/aarch64-sve-builtins.cc:3419
0x6a8c0b tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/tree.c:8738
0x11ed7bf tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/tree.h:3523
0x11ed7bf register_vector_type
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:3419
0x11ed7bf aarch64_sve::handle_arm_sve_h()
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:3535
0x802ab7 aarch64_pragma_aarch64
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-c.c:298
0x7309a3 c_parser_pragma
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c/c-parser.c:12573
0x75e56b c_parser_external_declaration
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c/c-parser.c:1761
0x75ecef c_parser_translation_unit
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c/c-parser.c:1653
0x75ecef c_parse_file()
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c/c-parser.c:22581
0x7c8097 c_common_parse_file()
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c-family/c-opts.c:1236