diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-01 20:27:37 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-01 20:27:37 +0000 |
commit | d085a8479fa3ca78beb178f93079ef58da3c2d0d (patch) | |
tree | 949e579a2127ed5b717cc2f0c87ffab7e3cf700e /gcc/cp/init.c | |
parent | 9363c37324826dda40e07ef99fd64422c365b7f5 (diff) | |
download | gcc-d085a8479fa3ca78beb178f93079ef58da3c2d0d.tar.gz |
PR c++/8727
* g++.dg/inherit/typeinfo1.C: New test.
PR c++/8663
* g++.dg/inherit/typedef1.C: New test.
PR c++/8727
* cp-tree.h (lang_type_class): Add typeinfo_var.
(CLASSTYPE_TYPEINFO_VAR): New macro.
* rtti.c (get_tinfo_decl): Use it.
PR c++/8663
* init.c (expand_member_init): Always get the main variant of a
base class.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59694 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index a7db6267853..39d4c57047e 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -967,7 +967,7 @@ expand_member_init (tree name, tree init) } else if (TYPE_P (name)) { - basetype = name; + basetype = TYPE_MAIN_VARIANT (name); name = TYPE_NAME (name); } else if (TREE_CODE (name) == TYPE_DECL) |