This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR c++/22293, ICE declaring destructor as friend
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 17 Oct 2005 18:42:55 +0100
- Subject: Re: [patch] Fix PR c++/22293, ICE declaring destructor as friend
- References: <tkrat.7fa4b9e81a11a303@igpm.rwth-aachen.de>
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