https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115593

            Bug ID: 115593
           Summary: invalid optimize attribute accepted without warning
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, diagnostic
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
```
void d(){}
__attribute__((optimize(d)))
void s(){}
```

I would have expected this to at least warn that d is not a valid
string/integer.

Reply via email to