This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++/3820: GCC 3.0 crashes with empty base class


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]