1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// PR middle-end/41275 // { dg-do compile } // { dg-options "-O2" } // this used to ICE struct ErrmsgWindow { virtual ~ErrmsgWindow() { extern int _switch_mode_errorstr; _switch_mode_errorstr = 42; } }; void ShowErrorMessage(void) { ErrmsgWindow w; }