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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to