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

nightstrike <nightstrike at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nightstrike at gmail dot com

--- Comment #4 from nightstrike <nightstrike at gmail dot com> ---
It looks to me like this has been done, at least for g++ 8.1.0:

$ g++ a.cc -c 
$ g++ a.cc -c -Wextra
a.cc:1:5: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
 int const f() { return 0; }
     ^~~~~

Reply via email to