cc1plus ICEs on the to-be-attached test case with any combination of 
options, on all targets I could try: 
 
t.ii: In instantiation of 'wvWare::PLCFIterator<wvWare::Word97::PCD>': 
t.ii:54513:   instantiated from here 
t.ii:47001: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
 
Here's a bit of gdb output: 
Starting program: /space/stevenb/build/gcc/cc1plus -quiet t.ii 
 
Program received signal SIGSEGV, Segmentation fault. 
0x000000000054b524 in perform_or_defer_access_check (binfo=0x0, 
decl=0x2a98a16b60) 
    at ../../mainline/gcc/cp/semantics.c:311 
311       gcc_assert (TREE_CODE (binfo) == TREE_BINFO); 
(gdb) up 
#1  0x000000000052ee00 in add_friend (type=0x2a98a277e0, decl=0x2a98a16b60, 
complain=0 '\0') 
    at ../../mainline/gcc/cp/friend.c:169 
169         perform_or_defer_access_check (TYPE_BINFO (ctx), decl); 
(gdb) p debug_tree (ctx) 
 <record_type 0x2a96532a80 PLCF<wvWare::Word97::PCD> type_5 type_6 VOID 
    align 8 symtab 0 alias set -1 context <namespace_decl 0x2a95ae2ee0 wvWare> 
    no-binfo use_template=1 interface-unknown 
    pointer_to_this <pointer_type 0x2a96541e00> chain <type_decl 0x2a96532b60 
PLCF<wvWare::Word97::PCD>>> 
$3 = void 
(gdb)

-- 
           Summary: ICE in wv2
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: steven at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to