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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
And with -pedantic-errors we get:
```
<source>:6:21: error: ISO C forbids qualified function types [-Wpedantic]
    6 | static const MyFunc my_func;
      |                     ^~~~~~~
```

So there is nothing to fix here. As the extension is very well documented
(though only again since GCC 14 due to it being mistakely removed, see PR
107942 for details on that one) and this extension has existed since at least
2.95.3 (most likely earlier before attributes were around).

Reply via email to