This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: internal compiler error with typedef in templates
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: internal compiler error with typedef in templates
- From: Martin Berger <martinb at dcs dot qmw dot ac dot uk>
- Date: Thu, 22 Feb 2001 19:08:43 +0000
- Organization: Department of Computer Science, QMW.
i reported this problem a few days ago, but i tested it using an old
compiler. i still get an internal compiler error from the following
little piece of code under gcc 2.95.2, so here it is again:
template <typename A>
typeof( *(A*)NULL ) test(){};
here is the output of g++ -v ...:
> g++ -v -c test.cpp
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
/usr/lib/gcc-lib/i386-linux/2.95.2/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__ test.cpp /tmp/ccSB2g8D.ii
GNU CPP version 2.95.2 20000220 (Debian GNU/Linux) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i386-linux/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../i386-linux/include
End of omitted list.
/usr/lib/gcc-lib/i386-linux/2.95.2/cc1plus /tmp/ccSB2g8D.ii -quiet -dumpbase test.cc -version -o /tmp/ccyyp5K9.s
GNU C++ version 2.95.2 20000220 (Debian GNU/Linux) (i386-linux) compiled by GNU C version 2.95.2 20000220 (Debian
GNU/Linux).