[Bug c++/93413] Destructor definition not found during constant evaluation

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 17 05:58:31 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93413

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The problem is the default Destructor in the Derived for the other examples.
So this can be reduced to just:
struct Base
{
    constexpr virtual ~Base() = default;
};

constexpr Base b;


More information about the Gcc-bugs mailing list