[LLVMbugs] [Bug 18128] New: lambda-expressions with capture-default are allowed at namespace scope
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Dec 3 19:24:59 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18128
Bug ID: 18128
Summary: lambda-expressions with capture-default are allowed at
namespace scope
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang incorrectly accepts this:
auto l = [=]{};
Per C++1y [expr.lambda]p9 this is ill-formed: only local lambda expressions may
have capture-defaults (even if they don't actually capture anything).
--
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/20131204/41d096fd/attachment.html>
More information about the llvm-bugs
mailing list