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 c++/23219


On Thu, 4 Aug 2005, Nathan Sidwell wrote:

> 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?

I've gone up some frames and looked for an easy fix there with no success.
But I didn't investigate where we generate this incomplete type.  I bet
you know the places where we (don't) set TYPE_MAIN_DECL.

Richard.


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