[PATCH] D39284: Allow conditions to be decomposed with structured bindings
Zhihao Yuan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 30 16:45:09 PDT 2017
lichray marked 3 inline comments as done.
lichray added inline comments.
================
Comment at: lib/Sema/SemaDeclCXX.cpp:696-698
+ // a for-range-declaration, or a condition in C++2a, but we parse it in more
+ // cases than that.
+ if (!D.mayHaveDecompositionDeclarator(getLangOpts())) {
----------------
rsmith wrote:
> Again, please don't guess what's going to be in C++2a. I would actually expect that we'll vote this in as a DR against C++17. It seems like a wording oversight to me.
I would say, use DR with parsimony... But OK.
OT: I'm writing a paper on `auto(x)` and `auto{x}` while implementing it. Do you expect this to land as a DR? In which form you expect it to appear in Clang?
https://reviews.llvm.org/D39284
More information about the cfe-commits
mailing list