An g++ exception bug in egcs 970924

H.J. Lu hjl@lucon.org
Thu Sep 25 10:42:00 GMT 1997


egcs 970924 configured for linux/x86/libc 5.

# gcc g++.mike/eh35.C
# a.out
zsh: 6096 segmentation fault  ./a.out


-- 
H.J. Lu (hjl@gnu.ai.mit.edu)
---g++.mike/eh35.C---
// Special g++ Options: -fexceptions
// excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-*

main() {
  try {  
    throw 'a';
  } catch (char a) {
    try {
      throw 'a';
    } catch (int i) {
      return 1;
    } catch (char c) {
      return 0;
    }
  }
  return 1;
}



More information about the Gcc mailing list