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?
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@xxxxxxxxxxxxxxxx :: http://www.planetfall.pwp.blueyonder.co.uk