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