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]

Bug report: Internal compiler error 252


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)


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