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]

Option --fno-rtti


Dear egcs developers,

This is program (one line only):

int main(void) {int i; typeid(i);}

g++ -c -fno-rtti file.c
1.c: In function `int main()':
1.c:4: Internal compiler error.
1.c:4: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
1.c:4: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.

The option -fno-rtti is used incorrectly in the example. It is expected
message "warning: requesting typeid of object without -frtti".

gams:~/tmp> g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.
66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
gams:~/tmp> uname -a
Linux gams 2.0.32 #22 Mon Jan 5 22:42:45 MSK 1998 i686 unknown

With best wishes,
Alexander Zvyagin.


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