aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@gcc.gnu.org>2001-08-12 08:08:42 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2001-08-12 08:08:42 +0000
commit370df4c8019594f39f3d5df4c4c96dbe2987449f (patch)
tree90dfd1c3d0ae418f0a6ca29158d931998f218a53
parent4c8c7b0ddfe69537ceda49a0d5ae63576c2b9354 (diff)
downloadgcc-370df4c8019594f39f3d5df4c4c96dbe2987449f.zip
gcc-370df4c8019594f39f3d5df4c4c96dbe2987449f.tar.gz
gcc-370df4c8019594f39f3d5df4c4c96dbe2987449f.tar.bz2
Testcase from PR #3350
From-SVN: r44820
-rw-r--r--gcc/testsuite/g++.dg/template/partial-specialization.C22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/partial-specialization.C b/gcc/testsuite/g++.dg/template/partial-specialization.C
new file mode 100644
index 0000000..feaeb2f
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/partial-specialization.C
@@ -0,0 +1,22 @@
+// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
+// Origin: philippeb@videotron.ca
+// { dg-do compile }
+
+struct B
+{
+ int i;
+};
+
+template <class _T, class _M, _M _T::* _V>
+ struct A;
+
+template <class _T, int _T::* _V>
+ struct A<_T, int, _V>
+ {
+ };
+
+int main()
+{
+ A<B, int, & B::i> a;
+}
+