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++/85464] [7 Regression] Wignored-qualifiers is emitted by cc1plus without diagnostics when triggered by a cast operator.


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.

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