[PATCH] D42530: Clang permits assignment to vector/extvector elements in a const method

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 2 12:05:12 PST 2018


rjmccall added a comment.

No, really, in CreateBuiltinArraySubscriptExpr and LookupMemberExpr, in the clauses where they handle vector types, you just need to propagate qualifiers from the base type like is done in BuildFieldReferenceExpr.  There's even a FIXME about it in the former.


https://reviews.llvm.org/D42530





More information about the cfe-commits mailing list