This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug report: Internal compiler error 252
- To: egcs-bugs at cygnus dot com
- Subject: Bug report: Internal compiler error 252
- From: John Knottenbelt <jak97 at doc dot ic dot ac dot uk>
- Date: Sun, 05 Jul 1998 18:07:36 -0000 (GMT)
Hi, here is a short program which brings out this problem in gcc 2.7.2.3.
----------------------------------------------------
#include <stdlib.h>
main()
{
try {
throw NULL;
}
catch( char *message )
{
}
}
---------------------------------------------------
The compiler dies with the following output:
g++ testcase.cc -o testcase
testcase.cc: In function `const class type_info & __tf?()':
testcase.cc:11: Internal compiler error 252.
testcase.cc:11: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make: *** [testcase] Error 1
--------------------------------------------------
I can get it to compile fine if I replace
throw NULL
with
throw (char *) NULL
Keep up the good work guys!
----------------------------------
John Knottenbelt <jak97@doc.ic.ac.uk> (18:03:12 05-Jul-98)