]> granicus.if.org Git - clang/commit
In Microsoft mode, make "Unqualified lookup into dependent bases of class templates...
authorFrancois Pichet <pichet2000@gmail.com>
Thu, 17 Nov 2011 03:44:24 +0000 (03:44 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Thu, 17 Nov 2011 03:44:24 +0000 (03:44 +0000)
commite6226ae490903717c8c07782f28bc8349543021f
tree577341891ffc8fc06955a15d9a1bc51c22676740
parent09fe1bb696847e6f1b482e5ac40029d53a2402df
In Microsoft mode, make "Unqualified lookup into dependent bases of class templates" works  inside default argument instantiation.

This is a little bit tricky because during default argument instantiation the CurContext points to a CXXMethodDecl but we can't use the keyword this or have an implicit member call generated.

This fixes 2 errors when parsing MFC code with clang.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144881 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOverload.cpp
test/SemaTemplate/ms-lookup-template-base-classes.cpp