https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102607
--- Comment #1 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> --- A workaround is to define `B`'s destructor as `constexpr virtual ~B() { }`.
johelegp at gmail dot com via Gcc-bugs Tue, 05 Oct 2021 12:23:16 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102607
--- Comment #1 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> --- A workaround is to define `B`'s destructor as `constexpr virtual ~B() { }`.