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

Harald van Dijk <harald at gigawatt dot nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harald at gigawatt dot nl

--- Comment #1 from Harald van Dijk <harald at gigawatt dot nl> ---
Contrary to what that person claims, the standard is clear that this is
ill-formed, see https://eel.is/c++draft/dcl.fct.def.delete, specifically the
note "It applies even for references in expressions that are not
potentially-evaluated." It doesn't matter that the lambda is not evaluated,
it's still an error to reference a deleted function, including a deleted
constructor.

Reply via email to