https://bugs.llvm.org/show_bug.cgi?id=33874
Richard Smith <richard-l...@metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
CC| |richard-l...@metafoo.co.uk
--- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> ---
This is a GCC bug. See [expr.prim.lambda.capture]/10.2:
"For each entity captured by copy, an unnamed non-static data member is
declared in the closure type. The declaration order of these members is
unspecified. The type of such a data member is the referenced type if the
entity is a reference to an object, an lvalue reference to the referenced
function type if the entity is a reference to a function, or the type of the
corresponding captured entity otherwise."
The type of the implicitly declared capture for "e" within the lambda closure
type is 'void (&)()', not 'void ()'.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs