https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118339
Bug ID: 118339
Summary: invalid string passed to target_clones causes an ICE
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Keywords: 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: ---
Target: aarch64
Testcase:
```
__attribute__ ((target_clones ("xyz,default"))) int foo ();
int bar () {
return foo();
}
```
The ICE:
```
during IPA pass: targetclone
<source>: In function '_Z3foov.resolver':
<source>:6:1: internal compiler error: in get_feature_mask_for_version, at
config/aarch64/aarch64.cc:20316
6 | }
| ^
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
```