Internal compiler error
Carlo Wood
carlo@runaway.xs4all.nl
Sun Oct 31 23:03:00 GMT 1999
Hi again,
here is another Internal Compiler Error for gcc-2.95.1.
Note this is (again) not valid C++. Still I think it's
a funny one ;).
---------------------------------------------------------
namespace N
{
template<typename T>
class A {
static T x;
};
};
class B {
template<typename T> friend class A;
};
template<typename T>
T A<T>::x;
---------------------------------------------------------
~/c++/tests>g++ -v -c bug2.95.1.cc
Reading specs from /usr/lib/gcc-lib/i686-redhat-linux/2.95.1/specs
gcc version 2.95.1 19990816/Linux (release)
/usr/lib/gcc-lib/i686-redhat-linux/2.95.1/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ bug2.95.1.cc /tmp/ccizRQid.ii
GNU CPP version 2.95.1 19990816/Linux (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i686-redhat-linux/2.95.1/../../../../include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i686-redhat-linux/2.95.1/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i686-redhat-linux/2.95.1/../../../../i686-redhat-linux/include
End of omitted list.
/usr/lib/gcc-lib/i686-redhat-linux/2.95.1/cc1plus /tmp/ccizRQid.ii -quiet -dumpbase bug2.95.1.cc -version -o /tmp/cce0kqck.s
GNU C++ version 2.95.1 19990816/Linux (release) (i686-redhat-linux) compiled by GNU C version 2.95.1 19990816/Linux (release).
bug2.95.1.cc:14: Internal compiler error.
bug2.95.1.cc:14: Please submit a full bug report.
bug2.95.1.cc:14: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
Regards,
Carlo "egcs torturer" Wood <carlo@runaway.xs4all.nl>
More information about the Gcc-bugs
mailing list