[PATCH] D49688: [Sema] Fix a crash when a BlockExpr appears in a default-member-initializer of a class template
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 23 14:47:12 PDT 2018
erik.pilkington added a comment.
In https://reviews.llvm.org/D49688#1172269, @rjmccall wrote:
> I honestly don't know why the `BlockDecl` is in the members list in the first place; that seems wrong, for the same reason that we wouldn't (I assume?) consider a lambda's implicit record to be a member.
Looks like we do actually treat a lambda's implicit record as a member. This loop is only iterating over decls that are in the pattern decl's context, and I think it makes sense that the BlockDecl is there, right?
Repository:
rC Clang
https://reviews.llvm.org/D49688
More information about the cfe-commits
mailing list