shafik added inline comments.
================ Comment at: clang/test/SemaTemplate/default-template-arguments.cpp:9 + + auto lambda1 = [] <auto y = x> {}; // expected-error {{default argument references local variable x of enclosing function}} + auto lambda2 = [] <auto y = 42> {}; ---------------- To clarify my comment about, I think w/ the ODR use checking this should pass. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139400/new/ https://reviews.llvm.org/D139400 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits