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]

Re: c++/2703: Internal error #20000409 for g++-3.0 (20010423)


I narrowed this one down a bit, the problem is applying typeof() on
a variable that has a template parameter as type, ie:

~>g++-3.0 -v -c test.cc
Reading specs from /usr/local/gcc-3.0/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: /usr/src/gcc/gcc-cvs-3.0/configure --prefix=/usr/local/gcc-3.0 --enable-shared --with-gnu-as --with-gnu-ld --enable-languages=c++
gcc version 3.0 20010423 (prerelease)
 /usr/local/gcc-3.0/lib/gcc-lib/i686-pc-linux-gnu/3.0/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ test.cc -D__GNUG__=3 -D_GNU_SOURCE -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase test.cc -version -o /tmp/ccwEM9Wb.s
GNU CPP version 3.0 20010423 (prerelease) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0 20010423 (prerelease) (i686-pc-linux-gnu)
        compiled by GNU C version 3.0 20010423 (prerelease).
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/gcc-3.0/include/g++-v3
 /usr/local/gcc-3.0/include/g++-v3/i686-pc-linux-gnu
 /usr/local/include
 /usr/local/gcc-3.0/lib/gcc-lib/i686-pc-linux-gnu/3.0/include
 /usr/local/gcc-3.0/i686-pc-linux-gnu/include
 /usr/include
End of search list.
test.cc: In function `void f(T*)':
test.cc:4: Internal error #261.
test.cc:4: Internal compiler error in check_tag_decl, at cp/decl.c:6930
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


O well, this test case gives a different error :/, but thats the problem anyway.
test.cc in this case reads:

---------------------------------------
template<typename T>
  void f(T* x)
  {
    typeof(x);
  }
---------------------------------------

-- 
Carlo Wood <carlo@alinoe.com>


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