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]

ICE compiling wrong code (egcs-1.0.3).


Hello;

The following (wrong) code produces internal compiler error
both with egcs-1.0.2 and 1.0.3:

$ cat test.cc
class B
{
public:
  virtual bool foo();
};

int i;

void b(B* b)
{
  if(b->foo)  // () missed
    ++i;
}

$ ~/local/bin/g++ -v -c test.cc
Reading specs from
/home/osv/local/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
 /home/osv/local/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.27/cpp
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=90 -Di386 -D__ELF__ -Dunix -Dlinux -D__i386__ -D__ELF__
-D__unix__ -D__linux__ -D__i386 -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) test.cc
/tmp/cca09416.ii
GNU CPP version egcs-2.90.27 980315 (egcs-1.0.2 release) (i386
Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /home/osv/local/include/g++
 /usr/local/include
 /home/osv/local/i586-pc-linux-gnulibc1/include
 /home/osv/local/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.27/include
 /usr/include
End of search list.
 /home/osv/local/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.27/cc1plus
/tmp/cca09416.ii -quiet -dumpbase test.cc -version -o /tmp/cca09416.s
GNU C++ version egcs-2.90.27 980315 (egcs-1.0.2 release)
(i586-pc-linux-gnulibc1) compiled by GNU C version egcs-2.90.27 980315
(egcs-1.0.2 release).
test.cc: In function `void boo(class B *)':
test.cc:11: Internal compiler error.
test.cc:11: Please submit a full bug report to `egcs-bugs@cygnus.com'.
$

Regards,
Sergei Organov.


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