https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116598
Bug ID: 116598 Summary: gcc.dg/c23-attr-reproducible-1.c and gcc.dg/c23-attr-unsequenced-1.c ICEs on aarch64 due to searching for attributes Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: aarch64-sme, testsuite-fail Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Target: aarch64 Reduced testcase: ``` int f12 (long long *y) [[reproducible]] {} ``` The ICE and backtrace: ``` t.c: In function ‘f12’: t.c:1:1: internal compiler error: Segmentation fault 1 | int f12 (long long *y) [[reproducible]] {} | ^~~ 0x324ec50 internal_error(char const*, ...) ../../gcc/diagnostic-global-context.cc:492 0x176a3ca crash_signal ../../gcc/toplev.cc:321 0xda07bf tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc/tree.h:3632 0x1c5bbbf aarch64_lookup_shared_state_flags ../../gcc/config/aarch64/aarch64.cc:600 0x1c6079f aarch64_fntype_shared_flags ../../gcc/config/aarch64/aarch64.cc:2197 0x1c607be aarch64_fntype_pstate_za ../../gcc/config/aarch64/aarch64.cc:2206 0x1c609ab aarch64_fndecl_pstate_za ../../gcc/config/aarch64/aarch64.cc:2266 0x1c609d6 aarch64_fndecl_isa_mode ../../gcc/config/aarch64/aarch64.cc:2276 0x1c917db aarch64_set_current_function ../../gcc/config/aarch64/aarch64.cc:19142 0x1254cdc invoke_set_current_function_hook ../../gcc/function.cc:4692 0x1255039 allocate_struct_function(tree_node*, bool) ../../gcc/function.cc:4815 0xdcc501 store_parm_decls() ../../gcc/c/c-decl.cc:11320 0xe3cff0 c_parser_declaration_or_fndef ../../gcc/c/c-parser.cc:2990 0xe3aa1c c_parser_external_declaration ../../gcc/c/c-parser.cc:2060 0xe3a4a8 c_parser_translation_unit ../../gcc/c/c-parser.cc:1914 0xe8f637 c_parse_file() ../../gcc/c/c-parser.cc:27337 0xf3badc c_common_parse_file() ../../gcc/c-family/c-opts.cc:1315 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. ``` Looks like the issue is when reproducible is not added due to the pointer but the attribute is still there.