This is the mail archive of the gcc-patches@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]

Re: [patch] Fix PR c++/22293, ICE declaring destructor as friend


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


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