From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Hansen To: "'bug-gcc@gnu.org'" Subject: Bug report Date: Tue, 24 Aug 1999 02:23:00 -0000 Message-id: <11820D73F2B8D111860400805FB6CB114C9D0E@exchange.systematic.dk> X-SW-Source: 1999-08/msg00887.html List-Id: Hi there, I known the following is not supposed to work, but still it shouldn't generate an internal compiler error either. Compiler the following program with option -fno-rtti: test.cpp: #include class A { public: const char *kind(); }; const char *A::kind() { return typeid(A).name(); } Command line: % uname -a HP-UX hp10 B.10.01 A 9000/710 2000178706 two-user license % /pack/gcc-2.95.1/bin/g++ -v Reading specs from /pack/gcc-2.95.1/lib/gcc-lib/hppa1.1-hp-hpux10.01/2.95.1/specs gcc version 2.95.1 19990816 (release) % /pack/gcc-2.95.1/bin/g++ -fno-rtti -c test.cpp test.cpp: In method `const char * A::kind()': test.cpp:10: Internal compiler error. test.cpp:10: Please submit a full bug report. test.cpp:10: See for instructions. Regards, Martin Hansen