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]

Internal compiler error on -fxref.


Hi!

Obviously, the cp/xref.c module haven't been updated for a 
while, but it should not cause crash bugs. It works fine,
except when dealing with templates (pt.c never references
the xref.c file).

This following program gets an internal compiler error:

//
// Command line: g++ -fxref xref.cc -o xref
//
template<class A, class R>
struct B {
    typedef A a;
    typedef R r;
};

template<class R, class A>
struct X : public B<R*,A> {
    R func(A);
};

template<class A>
struct X<void, A> : public B<A*, void>
{
    void func(A);
};

int main()
{
    return 1;
}


$ g++ -fxref xref.cc -o xref
xref.cc:14: Internal compiler error.
xref.cc:14: Please submit a full bug report to `egcs-bugs@cygnus.com'.
$ g++ -v
Reading specs from
/usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)


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