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
This commit is contained in:
parent
5d5139f54a
commit
fcd3f0bc88
16
gcc/testsuite/g++.old-deja/g++.pt/virtual3.C
Normal file
16
gcc/testsuite/g++.old-deja/g++.pt/virtual3.C
Normal file
@ -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) {}
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user