AaronLiu added a comment.

When compile the following valid testcase:

  void foo()
  {
          int x = [x](int y[sizeof x]){return sizeof x;}(0);
  }

It will complain:

  error: captured variable 'x' cannot appear here
          int x = [x](int y[sizeof x]){return sizeof x;}(0);
                                   ^

The issue is also described in: https://cplusplus.github.io/CWG/issues/2569.html


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119136

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D119136: ... Aaron H Liu via Phabricator via cfe-commits

Reply via email to