https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102262
Arsen Arsenović <arsen at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arsen at gcc dot gnu.org
--- Comment #7 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
I think that:
struct G_Optional_payload_base
{
struct G_Storage
{
~G_Storage ();
} G_M_payload;
};
struct G_Optional_base
{
G_Optional_payload_base G_M_payload;
};
struct optional : G_Optional_base
{
constexpr optional () {}
};
constexpr void
test_from_opt_value ()
{
optional v;
}
auto test_all = []
{
test_from_opt_value ();
return true;
};
static_assert (test_all ());
... is another instance of the same ICE as the one Jonathan posted in #c4