From: Mark Mitchell Date: Sun, 30 May 1999 21:50:49 +0000 (+0000) Subject: lex.c (make_lang_type): Create TYPE_BINFO for TEMPLATE_TYPE_PARMs just like for non... X-Git-Tag: releases/libgcj-2.95.0~312 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcd3f0bc88435980d669c4dc4e21c683354b58f0;p=thirdparty%2Fgcc.git 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 --- 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 000000000000..8fe367a3add9 --- /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) {} +};