[Bug c++/85464] [7 Regression] Wignored-qualifiers is emitted by cc1plus without diagnostics when triggered by a cast operator.
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 19 10:33:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85464
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Trunk prints a location, but it's the wrong one again:
ign.cc:3:25: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
operator int const() const; // { dg-error "type qualifiers ignored" }
^~~~~
So this is a regression for gcc-7 and an ordinary bug for gcc-8.
More information about the Gcc-bugs
mailing list