Internal compiler error with option -fno-rtti
Andris Pavenis
andris@stargate.astr.lu.lv
Fri Dec 31 20:54:00 GMT 1999
On Wed, 01 Dec 1999, Alexander Zvyagin wrote:
> Dear GCC developers,
>
> here is code (two lines):
> #include <typeinfo>
> int main(void) { typeid(int); }
>
> $ g++ -fno-rtti -c 1.c
> 1.c: In function `int main()':
> 1.c:2: Internal compiler error.
> 1.c:2: Please submit a full bug report.
>
> gcc version 2.95.2 19991024 (release)
>
> The message from compiler should be like
> "You can not compile code with RTTI features with option -fno-rtti"
>
For i586-pc-linux-gnu I'm getting message mentioned above
For i586-pc-msdosdjgpp gcc gives error message that typeid() used
with -fno-rtti as it should (no ICE)
Andris
More information about the Gcc-bugs
mailing list