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

--- Comment #3 from mauro russo <ing.russomauro at gmail dot com> ---
ok, thanks for the clarification,

I am not aware how to do it on godbolt, pls check the minimum version where it
happens.

And sorry for not having highlighted soon it is an invalid code.

I was testing the cppreference statement about the option not to capture
constexpr objects with no mutable members, that I haven't found in the
standard.

Tried explicit destructor as I did not have other methods, then added f() later
to check around the error. Pls, check yourself whether 15.2 or earlier fail
also with .f() instead of .~S().

Reply via email to