aaron.ballman added inline comments.

================
Comment at: clang/test/SemaCXX/lambda-expressions.cpp:680
+  auto l = [&]() {
+          a;   // expected-error{{cannot capture a bit-field by reference}}
+          b;
----------------
This still should be accepted -- `a` is an `const int &` that was materialized 
from a temporary and lifetime extended, so it's not a bit-field.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131202/new/

https://reviews.llvm.org/D131202

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to