https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110575
Bug ID: 110575 Summary: gcc: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in build_aligned_type Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 141242068 at smail dot nju.edu.cn Target Milestone: --- The testcase: ``` void __GIMPLE(ssa, startwith("slp")) bar() { a = __MEM<v16si, 32>((int *restrict)b(c)); } ``` When attempting to compile this program using `gcc-14` with option `-O0`, gcc reports internal compiler error as below: ``` <source>:1:6: error: '__GIMPLE' only valid with '-fgimple' 1 | void __GIMPLE(ssa, startwith("slp")) bar() { | ^~~~~~~~ <source>: In function 'bar': <source>:2:3: error: 'a' undeclared (first use in this function) 2 | a = __MEM<v16si, 32>((int *restrict)b(c)); | ^ <source>:2:3: note: each undeclared identifier is reported only once for each function it appears in <source>:2:13: error: unknown type name 'v16si' 2 | a = __MEM<v16si, 32>((int *restrict)b(c)); | ^~~~~ <source>:2:3: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in build_aligned_type, at tree.cc:5700 2 | a = __MEM<v16si, 32>((int *restrict)b(c)); | ^ 0x213983e internal_error(char const*, ...) ???:0 0x8959fe tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ???:0 0xa7aeae c_parser_parse_gimple_body(c_parser*, char*, c_declspec_il, profile_count) ???:0 0xa71add c_parse_file() ???:0 0xae1149 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. Compiler returned: 1 ``` This behavior can be verified by visiting the CompilerExplorer: https://gcc.godbolt.org/z/8d8GGaPze