aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin v. Löwis <loewis@gcc.gnu.org>1998-09-25 11:17:12 +0000
committerMartin v. Löwis <loewis@gcc.gnu.org>1998-09-25 11:17:12 +0000
commita0e7ad89ab869a38605b9980817b40851e7f2f36 (patch)
treeb89f42e536ee1e088ebc133205e6799954e5ca5d
parent1231fb960d04d93cc39a612d2de7543ae3ea3b2f (diff)
downloadgcc-a0e7ad89ab869a38605b9980817b40851e7f2f36.zip
gcc-a0e7ad89ab869a38605b9980817b40851e7f2f36.tar.gz
gcc-a0e7ad89ab869a38605b9980817b40851e7f2f36.tar.bz2
New test case.
From-SVN: r22590
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ns/template6.C24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/template6.C b/gcc/testsuite/g++.old-deja/g++.ns/template6.C
new file mode 100644
index 0000000..3a95485
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.ns/template6.C
@@ -0,0 +1,24 @@
+//Build don't link:
+//reported by Theodore Papadopoulo (Theodore.Papadopoulo@sophia.inria.fr)
+
+namespace A {
+
+ namespace B {
+
+ template <class T1,class T2>
+ class B {
+ static const unsigned count = 0;
+ template <class ForwardIter>
+ void SetError(ForwardIter it,const T1& p1,const T2& p2) const { }
+ };
+
+ template <>
+ const unsigned B<int,int>::count = 2;
+ }
+};
+
+int
+main()
+{
+ unsigned kk = A::B<int,int>::count; // ERROR - not a template: syntax error
+}