[LLVMbugs] [Bug 21180] clang does not delete default-constructor of lambdas

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 7 11:01:42 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21180

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |FIXED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Thanks for the report! Your analysis is not exactly right; what's happening is
that the lambda closure type is an aggregate, and 'T instance{}' is performing
aggregate initialization. This is wrong by [expr.prim.lambda]p3: "This class
type is neither an aggregate nor a literal type."

Fixed in r219222.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141007/db78117a/attachment.html>


More information about the llvm-bugs mailing list