From fcd3f0bc88435980d669c4dc4e21c683354b58f0 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Sun, 30 May 1999 21:50:49 +0000 Subject: [PATCH] lex.c (make_lang_type): Create TYPE_BINFO for TEMPLATE_TYPE_PARMs just like for non-template types. * 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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/virtual3.C 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 index 00000000000..8fe367a3add --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/virtual3.C @@ -0,0 +1,16 @@ +// Build don't link: +// Origin: Mark Mitchell + +template +struct S : virtual public X +{ + int i; +}; + +template +struct X : virtual public T, virtual public S +{ + int i; + + X () : i (3) {} +}; -- 2.30.2