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]

g++ ICE with --enable-checking at gcc/cp/decl.c:14996


I have been following up --enable-checking=tree,misc,gc,gcac testsuite
failures on irix6.5.

The failure in g++.old-deja/g++.pt/nttp1.C is

Program received signal SIGSEGV, Segmentation fault.
0x1007c938 in lang_mark_tree (t=0x4049600)
    at /exd4/billingd/src/egcs-20000807/gcc/cp/decl.c:14996
14996                 if (!DECL_OVERLOADED_OPERATOR_P (t))

################# nttp1.ii ###################### 
template <template<template <class> class> class TTT> struct C
{
        int f();
};

template <template<template <class> class> class TTT> int C<TTT>::f()
{
        return 0;
}

template <template <class> class TT> struct D
{
};

int main()
{
        C<D> c;
        c.f();
}

##################################################################

(gdb) run  nttp1.ii -quiet -dumpbase nttp1.C -ansi -Wno-long-long
-pedantic-errors -ansi -version -fmessage-length=0 -o nttp1.s
Starting program:
/exd4/billingd/obj/egcs-20000807-enable-checking/gcc/testsuite/../cc1plus
nttp1.ii -quiet -dumpbase nttp1.C -ansi -Wno-long-long -pedantic-errors
-ansi -version -fmessage-length=0 -o nttp1.s
GNU C++ version 2.96 20000807 (experimental) (mips-sgi-irix6.5) compiled by
GNU C version 2.96 20000807 (experimental).

Program received signal SIGSEGV, Segmentation fault.
0x1007c938 in lang_mark_tree (t=0x4049600)
    at /exd4/billingd/src/egcs-20000807/gcc/cp/decl.c:14996
14996                 if (!DECL_OVERLOADED_OPERATOR_P (t))
(gdb) where
#0  0x1007c938 in lang_mark_tree (t=0x4049600)
    at /exd4/billingd/src/egcs-20000807/gcc/cp/decl.c:14996
#1  0x103051c8 in ggc_mark_trees ()
    at /exd4/billingd/src/egcs-20000807/gcc/ggc-common.c:420
#2  0x10303210 in ggc_mark_roots ()
    at /exd4/billingd/src/egcs-20000807/gcc/ggc-common.c:195
#3  0x1031a254 in ggc_collect ()
    at /exd4/billingd/src/egcs-20000807/gcc/ggc-page.c:1124
#4  0x10106bf0 in yyparse ()
    at /exd4/billingd/src/egcs-20000807/gcc/cp/parse.y:451
#5  0x101a2f1c in compile_file (name=0x40581a0 "nttp1.ii")
    at /exd4/billingd/src/egcs-20000807/gcc/toplev.c:2296
#6  0x101a8c68 in main (argc=13, argv=0x7fff2f04)
    at /exd4/billingd/src/egcs-20000807/gcc/toplev.c:4774
(gdb) 

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