Internal compiler error 980711 ( egcs 1.1 )

Ulf Larsson ulf.larsson@mbow337.swipnet.se
Wed Nov 4 23:06:00 GMT 1998


Hi,

The following illegal code generates internal
compile rerrror. 

 
bug.cc

namespace A { }
struct B {};

int main() {
  typedef A::C< B > C_t;
  return 0;
}


 % g++ -v --save-temps bug.cc 
Reading specs from
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.57/cpp -lang-c++ -v
-undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91
-D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix
-D__linux -Asystem(posix) -D__EXCEPTIONS -Asystem(unix) -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686
-D__i686__ -D__pentiumpro -D__pentiumpro__ bug.cc bug.ii
GNU CPP version egcs-2.91.57 19980901 (egcs-1.1 release) (i386
Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include/g++
 /usr/local/include
 /usr/local/i686-pc-linux-gnu/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.57/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.57/cc1plus bug.ii
-quiet -dumpbase bug.cc -version -o bug.s
GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release)
(i686-pc-linux-gnu) compiled by GNU C version 2.7.2.3.
bug.cc: In function `int main()':
bug.cc:5: Internal compiler error 980711.
bug.cc:5: Please submit a full bug report to `egcs-bugs@cygnus.com'.

Ulf



More information about the Gcc-bugs mailing list