This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
internal compiler error 990505
- To: gcc-bugs at gcc dot gnu dot org
- Subject: internal compiler error 990505
- From: Julian dot Bock at t-online dot de (Julian v. Bock)
- Date: Wed, 7 Jun 2000 09:42:14 +0200
Hi!
gcc 2.95.2 aborts with an internal compiler error while compiling the following
piece of code on a i686-pc-linux-gnu system.
-----
class foo
{
public:
int asd;
typeof( foo::asd )
bar() { return 0; }
};
-----
# g++ bug.cc -S
bug.cc: In method `int foo::* foo::bar()':
bug.cc:7: Internal compiler error 990505.
bug.cc:7: Please submit a full bug report.
The following code is compiled without problems:
-----
class foo
{
public:
int asd;
int foo::*
test1() { return 0; }
typeof( foo::asd )
test2();
};
-----
It seems that gcc fails only, when typeof is used and an implementation is
provided.
verbose g++ output:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -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 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ bug.cc /tmp/ccbLZvtv.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3
/usr/include
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../i686-pc-linux-gnu/include
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cc1plus /tmp/ccbLZvtv.ii -quiet -dumpbase bug.cc -version -o bug.s
GNU C++ version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled by GNU C version 2.95.2 19991024 (release).
bug.cc: In method `int foo::* foo::bar()':
bug.cc:7: Internal compiler error 990505.
bug.cc:7: Please submit a full bug report.
bug.cc:7: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
Julian