This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33035] ICE on local class destructor. Regression?
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2007 22:32:46 -0000
- Subject: [Bug c++/33035] ICE on local class destructor. Regression?
- References: <bug-33035-5485@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pcarlini at suse dot de 2007-08-14 22:32 -------
For some reason, I can't attach the patch, here it is, anyway:
Index: pt.c
===================================================================
*** pt.c (revision 127493)
--- pt.c (working copy)
*************** push_template_decl_real (tree decl, bool
*** 3913,3919 ****
if (current == decl)
current = ctx;
else
! current = TYPE_CONTEXT (current);
}
}
--- 3913,3921 ----
if (current == decl)
current = ctx;
else
! current = (TYPE_P (current)
! ? TYPE_CONTEXT (current)
! : DECL_CONTEXT (current));
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33035