]> granicus.if.org Git - clang/commit
In C++11 mode, implement the C++11 semantics for
authorDouglas Gregor <dgregor@apple.com>
Tue, 1 May 2012 20:23:02 +0000 (20:23 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 1 May 2012 20:23:02 +0000 (20:23 +0000)
commit05e6076f0a02dbb73d20a3928976bcd242a13279
tree3ccc70ec3695c7ccc39ba11513e22892ecfaead6
parentd53f6971a7c97c9a564c9a7b3b1dd773d120aac8
In C++11 mode, implement the C++11 semantics for
[basic.lookup.classref]p1 and p4, which concerns name lookup for
nested-name-specifiers and template names, respectively, in a member
access expression. C++98/03 forces us to look both in the scope of the
object and in the current scope, then compare the results. C++11 just
takes the result from the scope of the object, if something is
found. Fixes <rdar://problem/11328502>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155935 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCXXScopeSpec.cpp
lib/Sema/SemaTemplate.cpp