nested2.C: different virtual base classes that happen to have the same base name...
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Fri, 18 Sep 1998 18:33:17 +0000 (18:33 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Fri, 18 Sep 1998 18:33:17 +0000 (18:33 +0000)
* g++.old-deja/g++.other/nested2.C: different virtual base classes
  that happen to have the same base name, but in different scopes,
  are incorrectly rejected

From-SVN: r22470

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/nested2.C [new file with mode: 0644]

index 07ebd8f7e076d6979f87b5d099d5f0fc7d8ce50f..ae4bab7733553bd0491cde44325e34c759f53f76 100644 (file)
@@ -1,3 +1,9 @@
+1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * g++.old-deja/g++.other/nested2.C: different virtual base classes
+       that happen to have the same base name, but in different scopes,
+       are incorrectly rejected
+
 1998-09-16  Richard Henderson  <rth@cygnus.com>
 
        * g++.old-deja/g++.brendan/array1.C: Size array via arithmetic based
diff --git a/gcc/testsuite/g++.old-deja/g++.other/nested2.C b/gcc/testsuite/g++.old-deja/g++.other/nested2.C
new file mode 100644 (file)
index 0000000..027a321
--- /dev/null
@@ -0,0 +1,12 @@
+// Build don't link:
+// by Bert Bril <bert@dgb.nl>
+
+struct M1 {
+    struct I                            {};
+};
+struct M2 {
+    struct I                            {};
+    struct J : virtual public M2::I,
+               virtual public M1::I     {}; // XFAIL *-*-*
+};