https://llvm.org/bugs/show_bug.cgi?id=31388
Bug ID: 31388 Summary: Accessing objects captured with generalized capture syntax in lambda trailing return type produces an error Product: clang Version: trunk Hardware: All OS: Linux Status: NEW Severity: normal Priority: P Component: C++14 Assignee: unassignedclangb...@nondot.org Reporter: vittorio.ro...@outlook.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified This code: int main() { auto l = [x = 10]() -> decltype(x) {}; } Produces the following error: error: use of undeclared identifier 'x' auto l = [x = 10]() -> decltype(x) {}; ^ On wandbox: http://melpon.org/wandbox/permlink/zsFICgiaMhCrIIwe Related StackOverflow question: http://stackoverflow.com/questions/41162200 -- 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