]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Tue, 10 Dec 2002 07:16:06 +0000 (07:16 +0000)
committerNo Author <no-author@gcc.gnu.org>
Tue, 10 Dec 2002 07:16:06 +0000 (07:16 +0000)
'gcc-3_2-branch'.

From-SVN: r59981

gcc/testsuite/g++.dg/template/static1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/static2.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/template/static1.C b/gcc/testsuite/g++.dg/template/static1.C
new file mode 100644 (file)
index 0000000..f01d032
--- /dev/null
@@ -0,0 +1,4 @@
+template <typename T> struct A
+{
+  static const int t[1][1]={{0}}; // { dg-error "in-class" }
+};
diff --git a/gcc/testsuite/g++.dg/template/static2.C b/gcc/testsuite/g++.dg/template/static2.C
new file mode 100644 (file)
index 0000000..d18c1a7
--- /dev/null
@@ -0,0 +1,17 @@
+class A;
+
+template<int A::* P>
+class B
+{
+public:
+  static int A::* const p = P; // { dg-error "in-class" }
+};
+
+class A
+{
+public:
+
+int dummy;
+
+B<&A::dummy> d;
+};