[LLVMbugs] [Bug 20289] New: generic lambda with auto or decltype(auto) should not need to capture a constant expression in its return expression.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jul 12 14:57:14 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20289
Bug ID: 20289
Summary: generic lambda with auto or decltype(auto) should not
need to capture a constant expression in its return
expression.
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++1y
Assignee: unassignedclangbugs at nondot.org
Reporter: faisalv at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
int main() {
const int n = 5;
auto L = [](auto a) {
return [](auto b) {
auto x = n; // This works.
return n; //FIXME: This should work!
};
};
}
Will try and get to fixing this one soonish ...
--
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/20140712/bc7286b0/attachment.html>
More information about the llvm-bugs
mailing list