bug in catch(...)

JC Loredo-Osti josti@mscs.dal.ca
Thu Apr 30 19:45:00 GMT 1998


gcc version egcs-2.91.24 19980418 (gcc2 ss-980401 experimental)

with the following code:

//testi.cc
main(){
  try{
    int *p = new int;
  } catch (std::bad_alloc){}
}

instead of getting something like

testi.cc: In function `int main()':
testi.cc:5: parse error before `)'
testi.cc:5: confused by earlier errors, bailing outgcc version

one gets

testi.cc: In function `int main()':
testi.cc:5: Internal compiler error 109.
testi.cc:5: Please submit a full bug report to `egcs-bugs@cygnus.com'.


Regards,
-j





More information about the Gcc-bugs mailing list