[patch] Fix PR c++/22293, ICE declaring destructor as friend
Nathan Sidwell
nathan@codesourcery.com
Mon Oct 17 17:43:00 GMT 2005
Volker Reichelt wrote:
> Regards,
> Volker
>
>
> 2005-10-17 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
>
> PR c++/22293
> * decl.c (grokdeclarator): Reject unqualified destructors in
> friend declarations.
ok.
> ! error ("unqualified destructor %qD cannot be declared "
> ! "friend", id_declarator->u.id.unqualified_name);
Perhaps a better message would be 'destructor %qD must use a qualified name in
friend declaration'. That tells the user rather more explicitly how to fix
their code.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the Gcc-patches
mailing list