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