commit | 00b4b039f02d338ae4774797053235a7e65abbde | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Fri May 14 04:53:42 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Fri May 14 04:53:42 2010 +0000 |
tree | 38467b42cae543045e427d18e9203b7539486172 | |
parent | ca4aa379fcae53c50760cdf3632d8d801b795046 [diff] [blame] |
Make sure to search semantic scopes and appropriate template-parameter scopes during unqualified name lookup that has fallen out to namespace scope. Fixes PR7133. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103766 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/nested-name-spec-template.cpp b/test/SemaTemplate/nested-name-spec-template.cpp index 9d25a05..54e615b 100644 --- a/test/SemaTemplate/nested-name-spec-template.cpp +++ b/test/SemaTemplate/nested-name-spec-template.cpp
@@ -64,3 +64,10 @@ template <class T> T pair<T>::* const pair<T>::mem_array[2] = { &pair<T>::x, &pair<T>::y }; } + +typedef int T; +namespace N1 { + template<typename T> T f0(); +} + +template<typename T> T N1::f0() { }