diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-03-09 23:24:34 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-03-09 23:24:34 +0000 |
commit | 975cc644d5d9dafdb4060aa31c9753d0554e1308 (patch) | |
tree | 7541c7fb4852ccc2aa9c243a34910dfa9a2900e9 /test/CXX | |
parent | 910ee57073f87b3f598971d4e96aff9dbf56a6c8 (diff) | |
download | clang-975cc644d5d9dafdb4060aa31c9753d0554e1308.tar.gz |
Revert r127206 "Detect attempts to provide a specialization of a function within
a...", it appears to cause us to reject various valid codes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX')
-rw-r--r-- | test/CXX/temp/temp.spec/temp.expl.spec/p2.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/CXX/temp/temp.spec/temp.expl.spec/p2.cpp b/test/CXX/temp/temp.spec/temp.expl.spec/p2.cpp index 2295235570..1032a87def 100644 --- a/test/CXX/temp/temp.spec/temp.expl.spec/p2.cpp +++ b/test/CXX/temp/temp.spec/temp.expl.spec/p2.cpp @@ -237,15 +237,3 @@ void test_func_template(N0::X0<void *> xvp, void *vp, const void *cvp, xvp.ft1(vp, i); xvp.ft1(vp, u); } - -namespace PR8979 { - template<typename Z> - struct X0 { - template <class T, class U> class Inner; - struct OtherInner; - template<typename T, typename U> void f(Inner<T, U>&); - - typedef Inner<OtherInner, OtherInner> MyInner; - template<> void f(MyInner&); // expected-error{{cannot specialize a function 'f' within class scope}} - }; -} |