diff options
author | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-24 17:49:25 +0000 |
---|---|---|
committer | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-24 17:49:25 +0000 |
commit | 99b8e7f1cc78f3ddabb89dfb5d6cb7cac3aff14f (patch) | |
tree | e4720d039c042b7cd89f8a75f256c697ae8b5493 /gcc/testsuite/g++.dg/template/spec7.C | |
parent | 964944fc854c1dd723f7b8150d0deac634aabdbb (diff) |
This commit was manufactured by cvs2svn to create taghammer-3_3-merge-20030624
'hammer-3_3-merge-20030624'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/hammer-3_3-merge-20030624@68434 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/template/spec7.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/spec7.C | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/spec7.C b/gcc/testsuite/g++.dg/template/spec7.C new file mode 100644 index 00000000000..18d3c90c45e --- /dev/null +++ b/gcc/testsuite/g++.dg/template/spec7.C @@ -0,0 +1,27 @@ +// { dg-do compile } + +// PR c++/6440: Specialization of member class template. + +template<class T> struct A +{ + template<class U> struct B {}; +}; + +template<> template<class U> +struct A<int>::B +{ + void f(); + template <class V> void g(V); +}; + +template<> template<> template <class V> void A<int>::B<char>::g(V) +{ +} + +A<int>::B<char> b; + +int h() +{ + b.f(); + b.g(0); +} |