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 on "throw NULL;"




[eramosa:emu]# g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release) 
[eramosa:emu]# g++ -c bug.cc
bug.cc: In function `const class type_info & __tf?()':
bug.cc:8: Internal compiler error 252.
bug.cc:8: Please submit a full bug report to `egcs-bugs@cygnus.com'. 


Source which caused error:
- bug.cc -----------------------
#include <stddef.h>
int main(){
    try{
	throw NULL;
    }
    catch(char*){
    }
}
--------------------------------

The egcs binaries were obtained from RedHat package
egcs-1.0.2-8.i386.rpm and egcs-c++-1.0.2-8.i386.rpm (from
ftp.redhat.com)  

The system is a RedHat based linux machine, kernel 2.0.32


Michal Ostrowski
mostrows@styx.uwaterloo.ca


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