OSDN Git Service

* lex.c (make_lang_type): Create TYPE_BINFO for
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 May 1999 21:50:49 +0000 (21:50 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 May 1999 21:50:49 +0000 (21:50 +0000)
TEMPLATE_TYPE_PARMs just like for non-template types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27258 138bc75d-0d04-0410-961f-82ee72b054a4

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

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/virtual3.C b/gcc/testsuite/g++.old-deja/g++.pt/virtual3.C
new file mode 100644 (file)
index 0000000..8fe367a
--- /dev/null
@@ -0,0 +1,16 @@
+// Build don't link:
+// Origin: Mark Mitchell <mark@codesourcery.com>
+
+template <typename X>
+struct S : virtual public X
+{
+  int i;
+};
+
+template <typename T>
+struct X : virtual public T, virtual public S<T>
+{
+  int i;
+
+  X () : i (3) {}
+};