]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.c
re PR c++/8727 (compiler confused by inheritance from an anonymous struct)
authorMark Mitchell <mark@codesourcery.com>
Sun, 1 Dec 2002 20:27:37 +0000 (20:27 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 1 Dec 2002 20:27:37 +0000 (20:27 +0000)
commita82d6da5fcc41ade40261bca65c7717686c1ac9f
tree949e579a2127ed5b717cc2f0c87ffab7e3cf700e
parent558bb2c45e1eb7ef91a7ed959aad41b7b2eb6cf9
re PR c++/8727 (compiler confused by inheritance from an anonymous struct)

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.

From-SVN: r59694
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/rtti.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/typedef1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/inherit/typeinfo1.C [new file with mode: 0644]