[PATCH] D49688: [Sema] Fix a crash when a BlockExpr appears in a default-member-initializer of a class template

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 23 14:53:33 PDT 2018


rjmccall accepted this revision.
rjmccall added a comment.
This revision is now accepted and ready to land.

It makes sense that the BlockDecl's parent DC is the class, although I think it would be even better if we took a page from Swift and make a special DC for initializer expressions.  I don't think it makes sense for it to be listed in the DC's list of declarations.

Regardless, it's not something you have to fix.  Patch LGTM.


Repository:
  rC Clang

https://reviews.llvm.org/D49688





More information about the cfe-commits mailing list