1 2 3 4 5 6 7 8 9 10
// PR c++/93413 // { dg-do compile { target c++20 } } struct Base { virtual ~Base() = default; }; constexpr Base b; struct Derived : Base { }; constexpr Derived d;