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]

Internal compiler error 252


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;
}


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