This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28659] [4.2 regression] ICE (segfault) while compiling kdelibs 4.0 snapshot
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Aug 2006 22:04:08 -0000
- Subject: [Bug c++/28659] [4.2 regression] ICE (segfault) while compiling kdelibs 4.0 snapshot
- References: <bug-28659-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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