]> granicus.if.org Git - clang/commit
Implement C++ [temp.local]p8, which specifies that a template
authorDouglas Gregor <dgregor@apple.com>
Mon, 15 Mar 2010 14:33:29 +0000 (14:33 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 15 Mar 2010 14:33:29 +0000 (14:33 +0000)
commit711be1e89a56cdf679143ad18afaa58ed59f0584
treea495e912ea9f369fc41ae6bad9663d4bf235acf8
parent4b7a834e0fecddd9eaf1f4567867c718e4eebf50
Implement C++ [temp.local]p8, which specifies that a template
parameter hides a namespace-scope declararion with the same name in an
out-of-line definition of a template. The lookup requires a strange
interleaving of lexical and semantic scopes (go C++), which I have not
yet handled in the typo correction/code completion path.

Fixes PR6594.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98544 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
test/CXX/temp/temp.res/temp.local/p7.cpp [new file with mode: 0644]
test/CXX/temp/temp.res/temp.local/p8.cpp [new file with mode: 0644]
test/CXX/temp/temp.res/temp.local/p9.cpp [new file with mode: 0644]