[Bug c++/55768] Use of unknown __attribute__ in function definition is flagged with an error

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 19 05:21:00 GMT 2023


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

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

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 4.1.2, GCC 4.4.7, GCC 4.5.3, GCC 4.6.4, and GCC 4.7.1-4.7.4 all reject
unknown attributes in this location.

So there was no change as far as I can tell.

This is the testcase I used:
```
int foo(int x, int y) __attribute__((sdfsdf45))
{
  return x * y;
}
```


More information about the Gcc-bugs mailing list