Internal compiler error with improperly specified member pointer

Dennis Taylor dennis@funkplanet.com
Sun Apr 30 21:34:00 GMT 2000


	I wrote a little half-page C++ test program that causes an
internal compiler error on my system (Red Hat 6.2 i686, gcc 2.95.2).
Note that the program is already in error; I've put comments by the
mistakes that, in combination, cause this bug. Fix one or the other, and
the internal compiler error goes away.

	I've attached the relevant stuff. Hope this helps!

[dennis@bluesky src]$ uname -a
Linux bluesky 2.2.14-6.1.1 #7 Tue Apr 25 21:55:35 PDT 2000 i686 unknown

[dennis@bluesky src]$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)

[dennis@bluesky src]$ g++ -v --save-temps -O -Wall -pedantic -o test test.cpp
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/local/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 -D__OPTIMIZE__ -Wall -pedantic -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ test.cpp test.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../i686-pc-linux-gnu/include
 /usr/local/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/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cc1plus test.ii -quiet -dumpbase test.cc -O -Wall -pedantic -version -o test.s
GNU C++ version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled by GNU C version 2.95.2 19991024 (release).
test.cpp: In function `int main()':
test.cpp:33: warning: converting from `int (Fooble::*)()' to `int (*)()'
test.cpp:36: Internal compiler error.
test.cpp:36: Please submit a full bug report.
test.cpp:36: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.


_________________________________________________________________________
Dennis Taylor           "Anyone whose days are all the same and free from
dennis@funkplanet.com    want inhabits eternity of a sort."  - Peter Hoeg
_________________________________________________________________________
   PGP Fingerprint: E8D6 9670 4FBD EEC3 6C6B  810B 2B30 E529 51BD 7B90


More information about the Gcc-bugs mailing list