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


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@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]