Internal compiler error 252
David Mazieres
dm@reeducation-labor.lcs.mit.edu
Sun Aug 9 10:25:00 GMT 1998
The appended program illustrates a bug in egs 1.1. The compiler
version I'm using is:
Reading specs from /usr/local/egcs/lib/gcc-lib/i386-netbsd/egcs-2.91.53/specs
gcc version egcs-2.91.53 19980808 (gcc2 ss-980609 experimental)
When compiling the program, I get:
% c++ null-bug.C
null-bug.C: In function `const class type_info & __tf?()':
null-bug.C:9: Internal compiler error 252.
null-bug.C:9: Please submit a full bug report to `egcs-bugs@cygnus.com'.
Note that compiling with '-ansi' makes the problem go away, as then
NULL (or __null) is just an int as it should be (though this
contradicts the NEWS file which claims __null should actually be of
type size_t--i.e. unsigned).
Thanks,
David
===
#include <iostream>
#include <typeinfo>
int
main ()
{
cout << typeid (NULL).name () << "\n";
return 0;
}
More information about the Gcc-bugs
mailing list