new
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Nov 1998 02:24:18 +0000 (02:24 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Nov 1998 02:24:18 +0000 (02:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23692 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.old-deja/g++.other/access3.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/memtemp79.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.other/access3.C b/gcc/testsuite/g++.old-deja/g++.other/access3.C
new file mode 100644 (file)
index 0000000..87c4c81
--- /dev/null
@@ -0,0 +1,25 @@
+// The standard sez that a use of a name gets the most access it can through
+// the various paths that can reach it.  Here, the access decl in B gives
+// us access.
+
+struct A
+{
+  void f ();                   // gets bogus error - ref below XFAIL *-*-*
+};
+
+struct B: private virtual A
+{
+  A::f;
+};
+
+struct C: private virtual A, public B
+{
+};
+
+int
+main ()
+{
+  C c;
+
+  c.f ();                      // gets bogus error - private XFAIL *-*-*
+}
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp79.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp79.C
new file mode 100644 (file)
index 0000000..4eeffde
--- /dev/null
@@ -0,0 +1,6 @@
+// Build don't link:
+
+struct foo {
+       template<typename T> static void bar( foo* );
+       template<typename T> void bar() const; // gets bogus error - quals XFAIL *-*-*
+};