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

Sam James <sjames at gcc dot gnu.org> changed:

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

--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
https://gcc.gnu.org/onlinedocs/gcc/Common-Attributes.html#index-const

> The const attribute prohibits a function from reading objects that affect its 
> return value between successive invocations. However, functions declared with 
> the attribute can safely read objects that do not change their return value, 
> such as non-volatile constants. 

ok, so invalid

Reply via email to