This is the mail archive of the gcc-bugs@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]

[Bug c++/33035] ICE on local class destructor. Regression?



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


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