]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lex.c (make_lang_type): Create TYPE_BINFO for TEMPLATE_TYPE_PARMs just like for non...
authorMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 30 May 1999 21:50:49 +0000 (21:50 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 30 May 1999 21:50:49 +0000 (21:50 +0000)
* lex.c (make_lang_type): Create TYPE_BINFO for
TEMPLATE_TYPE_PARMs just like for non-template types.

[[Split portion of a mixed commit.]]

From-SVN: r27258.2

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) {}
+};