This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/81518] missing warning on a violation of attribute const requirements


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|DUPLICATE                   |INVALID

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually this is not a duplicated.  Just not a bug.
Function f is a declaration and not a definition so there is no way for GCC to
know this part of the constraint: "and examines the data pointed to".  So
invalid.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]