This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3820: GCC 3.0 crashes with empty base class
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, helmut dot zeisel at aon dot at, nathan at gcc dot gnu dot org
- Subject: Re: c++/3820: GCC 3.0 crashes with empty base class
- From: nathan at gcc dot gnu dot org
- Date: 7 Aug 2001 13:58:56 -0000
Synopsis: GCC 3.0 crashes with empty base class
State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Tue Aug 7 06:58:56 2001
State-Changed-Why:
fixed for 3.0.1
2001-08-07 Nathan Sidwell <nathan@codesourcery.com>
PR c++/3820
Stop using TYPE_NONCOPIED_PARTS.
* call.c (build_over_call): Be careful when copy constructing
or assigning to an empty class.
* class.c (check_bases_and_members): It has a
COMPLEX_ASSIGN_REF if it has a vptr.
(layout_class_type): Don't add empty class padding to
TYPE_NONCOPIED_PARTS.
(finish_struct_1): Don't add the VFIELD either.
* cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): Mention _copy_
initialization.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3820&database=gcc