commit | 5505c72695161e2fb55391d1453b82b7adbff923 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Mon Jan 24 18:54:39 2011 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Mon Jan 24 18:54:39 2011 +0000 |
tree | ab6a98976e28448e5a52e5b53ca79a559dad0b64 | |
parent | fbcfeeabed6aa60ba664be302f2b03bed3d1b24d [diff] [blame] |
Disallow function template partial specializations, from Hans Wennborg! Fixes PR8295. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124135 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/function-template-specialization.cpp b/test/SemaTemplate/function-template-specialization.cpp index 9afc99f..a0d41b2 100644 --- a/test/SemaTemplate/function-template-specialization.cpp +++ b/test/SemaTemplate/function-template-specialization.cpp
@@ -41,3 +41,8 @@ } template <> bool PR5833::f0<float>(float &t1) {} +// PR8295 +namespace PR8295 { + template <typename T> void f(T t) {} + template <typename T> void f<T*>(T* t) {} // expected-error{{function template partial specialization is not allowed}} +}