[PATCH] D6700: Diagnose UnresolvedLookupExprs that resolve to instance members in static methods

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 13 13:35:27 PDT 2015


rnk added inline comments.

================
Comment at: lib/Sema/TreeTransform.h:9138
@@ +9137,3 @@
+          isa<MSPropertyDecl>(D))
+        return getSema().BuildPossibleImplicitMemberExpr(
+            SS, SourceLocation(), R, /*TemplateArgs=*/nullptr,
----------------
I believe this will always fail, so one alternative way to do this would be to add a stripped down entry point into Sema just for template instantiation that diagnoses UnresolvedLookupExprs finding instance members.


http://reviews.llvm.org/D6700





More information about the cfe-commits mailing list