This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
internal compiler error with typedef in templates
- To: gcc-bugs at gcc dot gnu dot org
- Subject: internal compiler error with typedef in templates
- From: martinb at dcs dot qmw dot ac dot uk
- Date: Tue, 20 Feb 2001 11:03:00 +0000 (GMT)
hi, i get an internal compiler error from the following
little piece of code:
template <typename A>
typeof( *(A*)NULL ) test(){};
here is the output of g++ -v ...:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef -
D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -
Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -
D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D__EXCEPTIONS -Asystem
(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__
min.cpp /tmp/ccKZT7fJ.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-2
/usr/local/include
/usr/i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus /tmp/ccKZT7fJ.ii -
quiet -dumpbase min.cc -version -o /tmp/ccyosS3m.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386-redhat-
linux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2
release).
min.cpp:2: Internal compiler error.
min.cpp:2: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
min.cpp:2: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.