ahatanak added a comment.

I wonder whether it is possible to avoid calling 
DeclScopeObj.EnterDeclaratorScope at ParseDecl.cpp:5317 instead of fixing 
Sema::ActOnCXXEnterDeclaratorScope?

I believe it's calling EnterDeclaratorScope to enable name lookup when a 
namespace-member variable is defined outside the namespace. Since that's not 
the case here, it seems to me that it shouldn't called in the first place.

http://en.cppreference.com/w/cpp/language/unqualified_lookup


Repository:
  rL LLVM

https://reviews.llvm.org/D26922



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to