commit | 277d280c20d4414d61e307789949bef8ee3063fd | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Mon Jan 11 22:40:45 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Mon Jan 11 22:40:45 2010 +0000 |
tree | 2e55d75b9e7c2e4d84f44a42435b46f7e76f13a2 | |
parent | 004f81f8d1ec38047dba4d198311d31ccc8dd94d [diff] [blame] |
When performing name lookup into a scope, check that its entity is non-NULL before looking at the entity itself. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93199 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/function-template-specialization.cpp b/test/SemaTemplate/function-template-specialization.cpp index 91989b1..9afc99f 100644 --- a/test/SemaTemplate/function-template-specialization.cpp +++ b/test/SemaTemplate/function-template-specialization.cpp
@@ -33,3 +33,11 @@ template<> void f2<42>(double (&array)[42]); void f2<25>(double (&array)[25]); // expected-error{{specialization}} + +// PR5833 +namespace PR5833 { + template <typename T> bool f0(T &t1); + template <> bool f0<float>(float &t1); +} +template <> bool PR5833::f0<float>(float &t1) {} +