FRIDAY, APRIL 17, 2026
gcc — Impact 5 / 10
Fix lto-devirt-23.C testcase failure.
The compiler was incorrectly assuming that destructors can't be in construction, leading to a test failure fixed by removing an ineffective check.
The testcase lto-devirt-23.C was failing because the compiler was missing the fact that a type can be in construction. The polymorphic_ctor_dtor_p function was returning false on polymorphic destructors because they have a PURE flag. The check was deemed ineffective and has been removed to resolve the failure.