diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-05-30 21:50:49 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-05-30 21:50:49 +0000 |
commit | fcd3f0bc88435980d669c4dc4e21c683354b58f0 (patch) | |
tree | 7af4a7371d7dff2ae24f64f3f0b34cc18ccd83c2 /gcc | |
parent | 5d5139f54acfe66815180ef185cf1543b5bc0b72 (diff) | |
download | gcc-fcd3f0bc88435980d669c4dc4e21c683354b58f0.zip gcc-fcd3f0bc88435980d669c4dc4e21c683354b58f0.tar.gz gcc-fcd3f0bc88435980d669c4dc4e21c683354b58f0.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/virtual3.C | 16 |
1 files changed, 16 insertions, 0 deletions
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 0000000..8fe367a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/virtual3.C @@ -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) {} +}; |