https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116688
Bug ID: 116688 Summary: simd attribute vs clonable function Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Take: ``` __attribute__((simd)) double a(int t) { static void *labels[] = {&&l1, &&l2}; goto *labels[t]; l1: return 0; l2: return 1; } __attribute__((simd, noclone)) double a1(int t) { return 0.0; } ``` There is no error message BUT a and a1 were not cloned. We should error out if there was no clone here that happened. At least warn that the function was not cloned.