This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PING: [PATCH: c++/diagnostic/18313] Warn for pointless qualifiers on return type
On Sunday, 12. November 2006 22:25, Andrew Pinski wrote:
> > > typedef const int I;
> > > I f();
> I don't think it should warn for this testcase.
Care to explain? Note that this behaviour is consistent with the C frontend,
and IMHO I think it makes more sense to warn in this case than to not warn
about it (after all, the qualifiers are *there*, even if not given
explicitely).
Dirk