gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: [PATCH] Fix c++/23219

Subject: Re: [PATCH] Fix c++/23219
From: Nathan Sidwell
Date: Thu, 04 Aug 2005 15:25:32 +0100
Richard Guenther wrote:
This fixes PR23219, ice-on-invalid.

!         /* If we come here without a TYPE_MAIN_DECL because of
!            an error, just return current_namespace to cause
!            least confusion.  */
!         if (! TYPE_MAIN_DECL (decl))
!           return current_namespace;

I'd be happier if we didn't create such incomplete trees in the first place -- even in the face of errors. Have you investigated how hard that would be?

natha
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@xxxxxxxxxxxxxxxx    ::     http://www.planetfall.pwp.blueyonder.co.uk

<Prev in Thread] Current Thread [Next in Thread>