class should be usable as argument of member function
* g++.old-deja/g++.other/using6.C: New test; using decl from base
class should be usable as return type of member function
* g++.old-deja/g++.other/using7.C: New test; using decl from base
class should be usable as type of data member
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22970
138bc75d-0d04-0410-961f-
82ee72b054a4
1998-10-10 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * g++.old-deja/g++.other/using5.C: New test; using decl from base
+ class should be usable as argument of member function
+ * g++.old-deja/g++.other/using6.C: New test; using decl from base
+ class should be usable as return type of member function
+ * g++.old-deja/g++.other/using7.C: New test; using decl from base
+ class should be usable as type of data member
+
* g++.old-deja/g++.ns/extern1.C: fix XFAIL mark
Fri Oct 9 19:19:19 1998 Jeffrey A Law (law@cygnus.com)
--- /dev/null
+// Build don't link:
+
+// Based on bug report by Klaus-Georg Adams
+// <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
+
+// crash test - XFAIL *-*-*
+
+struct bar {
+ typedef bar t;
+};
+
+struct foo : bar {
+ using bar::t;
+ void baz(t pos);
+};
--- /dev/null
+// Build don't link:
+
+// Based on bug report by Klaus-Georg Adams
+// <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
+
+struct bar {
+ typedef bar t;
+};
+
+struct foo : bar {
+ using bar::t;
+ t baz(); // syntax error?!? - XFAIL *-*-*
+};
--- /dev/null
+// Build don't link:
+
+// Based on bug report by Klaus-Georg Adams
+// <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
+
+struct bar {
+ typedef bar t;
+};
+
+struct foo : bar {
+ using bar::t;
+ t baz; // syntax error?!? - XFAIL *-*-*
+};