https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101689
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Internal compiler error |ICE with |during GIMPLE pass: |-fvtable-verify=std and |ehcleanup |-fnon-call-exceptions Ever confirmed|0 |1 Last reconfirmed| |2021-07-30 Status|UNCONFIRMED |NEW Keywords| |ice-on-valid-code --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed, this has been a bug since -fvtable-verify=std was introduced. ICE with checking turned on: <source>: In member function 'virtual void A::foo(int)': <source>:2:16: error: statement marked for throw in middle of block 2 | virtual void foo (int x) { C e(&f, &x); bar (); } | ^~~ # VUSE <.MEM_8> _9 = this_6(D)->_vptr.A; during GIMPLE pass: vtable-verify