This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error on -fxref.
- To: egcs at cygnus dot com, egcs-bugs at cygnus dot com
- Subject: Internal compiler error on -fxref.
- From: Pal-Kristian Engstad <engstad at intermetrics dot com>
- Date: Fri, 24 Jul 1998 18:10:24 -0400
- Organization: Intermetrics Inc.
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)