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]

Compiler internal error with gcc-2.8.1 and egcs-1.0.1


Here is one small piece of code that generates internal compiler error under gcc-2.8.0, gcc-2.8.1
and  pgcc-2.90.23(egcs-1.0.1)

-----   Here is source of bug280.cc

class c {
  void (c::*x)();
  public:
  void f() { this->x(); }
};

-----  Compilation results with gcc-2.8.1 under Linux

Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/specs
gcc version 2.8.1
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=8 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS
-Di386 -Di586 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix) -Acpu(i386) -Amachine(i386)
bug280.cc /tmp/cca20218.ii
GNU CPP version 2.8.1 (i386 GNU/Linux with ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++
 /usr/lib/g++-include
 /usr/local/include
 /usr/i586-pc-linux-gnulibc1/include
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/cc1plus /tmp/cca20218.ii -quiet -dumpbase bug280.cc -version -o /tmp/cca20218.s
GNU C++ version 2.8.1 (i586-pc-linux-gnulibc1) compiled by GNU C version 2.8.1.
bug280.cc: In method `void c::f()':
bug280.cc:4: Internal compiler error.
bug280.cc:4: Please submit a full bug report to `bug-g++@prep.ai.mit.edu'.

-----
  Compilation results with pgcc-2.90.23 (egcs-1.0.1) under Linux

Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/pgcc-2.90.23/specs
gcc driver version 2.8.1 executing gcc version pgcc-2.90.23
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/pgcc-2.90.23/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=90 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS
-Di386 -Di586 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix) -Acpu(i386) -Amachine(i386)
bug280.cc /tmp/cca20259.ii
GNU CPP version pgcc-2.90.23 980102 (egcs-1.0.1 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/pgcc-2.90.23/include/g++
 /usr/lib/g++-include
 /usr/local/include
 /usr/i586-pc-linux-gnulibc1/include
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/pgcc-2.90.23/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/pgcc-2.90.23/cc1plus /tmp/cca20259.ii -quiet -dumpbase bug280.cc -version -o
/tmp/cca20259.s
GNU C++ version pgcc-2.90.23 980102 (egcs-1.0.1 release) (i586-pc-linux-gnulibc1) compiled by GNU C version pgcc-2.90.23 980102
(egcs-1.0.1 release).
bug280.cc: In method `void c::f()':
bug280.cc:4: Internal compiler error.
bug280.cc:4: Please submit a full bug report to `egcs-bugs@cygnus.com'.

-------------

Andris



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