diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-11-11 00:12:11 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-11-11 00:12:11 +0000 |
commit | ef04ecf96d83cd3cbc7bf8cf36d4c7873964194e (patch) | |
tree | ea33bcae944c2eecdadd226095b01a85c3a6bdcf /lib/Sema/SemaOverload.cpp | |
parent | 9e9a3e612d57b583800d5f0e48bb28d4afbd8b84 (diff) |
Move "Unqualified lookup into dependent bases of class templates" Microsoft specific behavior from -fms-extensions to -fms-compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index a8fdfcb0d4..6977462bc9 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -8705,7 +8705,7 @@ Sema::BuildOverloadedCallExpr(Scope *S, Expr *Fn, UnresolvedLookupExpr *ULE, // create a type dependent CallExpr. The goal is to postpone name lookup // to instantiation time to be able to search into type dependent base // classes. - if (getLangOptions().MicrosoftExt && CurContext->isDependentContext() && + if (getLangOptions().MicrosoftMode && CurContext->isDependentContext() && isa<CXXMethodDecl>(CurContext)) { CallExpr *CE = new (Context) CallExpr(Context, Fn, Args, NumArgs, Context.DependentTy, VK_RValue, |