Internal compiler error

Santtu Hyrkkö shyrkko@niksula.hut.fi
Sun Oct 31 23:03:00 GMT 1999


I get internal compiler error when I try to compile the following with gcc
2.95.1 on RedHat Linux 6.0:

template<class T>
class C
{
public:
  C(T a, T b) { }

  T a, b;

  const static C<T> s( 0, 0 );
};

int main()
{
}


$ gcc -v --save-temps bug.cpp
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/specs
gcc version 2.95.1 19990816 (release)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/cpp -lang-c++ -v
-D__GNUC__=2 -    D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__
-Dunix -D__i386__ -Dlinu    x -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 -D    pentiumpro
-D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ bug.cpp bug.ii
GNU CPP version 2.95.1 19990816 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/../../../../include/g++-3
 /usr/local/include

/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/../../../../i686-pc-linux-gnu/i
nclude
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/cc1plus bug.ii -quiet
-dumpbase     bug.cc -version -o bug.s
GNU C++ version 2.95.1 19990816 (release) (i686-pc-linux-gnu) compiled by
GNU C     version 2.95.1 19990816 (release).
bug.cpp:9: Internal compiler error.
bug.cpp:9: Please submit a full bug report.
bug.cpp:9: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport >
for inst    ructions.



More information about the Gcc-bugs mailing list