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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=110245

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
It works if we activate the union's member:

constexpr bool f() {
    union U{
        std::string s = {};
        constexpr ~U(){ s.~basic_string(); }
    } u{};
    return true;
}

static_assert( f() );

So perhaps this is a dup of PR110245?

Reply via email to