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++/28659] [4.2 regression] ICE (segfault) while compiling kdelibs 4.0 snapshot



------- Comment #8 from jason at redhat dot com  2006-08-21 22:04 -------
Subject: Re:  [4.2 regression] ICE (segfault) while compiling
 kdelibs 4.0 snapshot

I think this patch fixes the bug, but don't have time to test before 
going out for the evening.
Index: decl2.c
===================================================================
*** decl2.c     (revision 116310)
--- decl2.c     (working copy)
*************** min_vis_r (tree *tp, int *walk_subtrees,
*** 1547,1553 ****
      }
    else if (CLASS_TYPE_P (*tp))
      {
!       if (!TREE_PUBLIC (TYPE_MAIN_DECL (*tp)))
        {
          *vis_p = VISIBILITY_ANON;
          return *tp;
--- 1547,1553 ----
      }
    else if (CLASS_TYPE_P (*tp))
      {
!       if (!TREE_PUBLIC (TYPE_NAME (*tp)))
        {
          *vis_p = VISIBILITY_ANON;
          return *tp;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28659


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