]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Thu, 18 Dec 2003 14:27:49 +0000 (14:27 +0000)
committerNo Author <no-author@gcc.gnu.org>
Thu, 18 Dec 2003 14:27:49 +0000 (14:27 +0000)
'gcc-3_3-branch'.

From-SVN: r74781

gcc/testsuite/g++.dg/init/error1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/access13.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/init/error1.C b/gcc/testsuite/g++.dg/init/error1.C
new file mode 100644 (file)
index 0000000..e930fc7
--- /dev/null
@@ -0,0 +1,7 @@
+// PR c++/12696
+
+struct A {
+  static float b[10]; // { dg-error "" }
+}
+
+float A::b[] = {1,2,3}; // { dg-error "" }
diff --git a/gcc/testsuite/g++.dg/template/access13.C b/gcc/testsuite/g++.dg/template/access13.C
new file mode 100644 (file)
index 0000000..3a1442b
--- /dev/null
@@ -0,0 +1,16 @@
+// { dg-do compile }
+
+// Origin: Francesco Monica <fmonica@ce.unipr.it>
+
+// PR c++/13262: Access checking during instantiation of static data
+// member.
+
+template <typename T> class Aclass {
+  private:
+    Aclass() {}
+    static Aclass instance;
+};
+
+template <typename T> Aclass<T> Aclass<T>::instance;
+
+template class Aclass<int>;