[LLVMbugs] [Bug 18477] New: lambda capturing confused when instantiating a class with a default initializer
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 14 12:32:01 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18477
Bug ID: 18477
Summary: lambda capturing confused when instantiating a class
with a default initializer
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
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 rejects this:
template<typename T> struct S { int a; int b = a; };
void f() { []() { S<int> s; }; }
... apparently believing the default initializer would require the lambda to
capture 'this' from S<int>.
--
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/20140114/dd31c623/attachment.html>
More information about the llvm-bugs
mailing list