------- Comment #10 from dberlin at gcc dot gnu dot org 2005-10-31 13:53 ------- Subject: Re: [4.1 Regression] ICE in do_simple_structure_copy with some C++ code
On Mon, 2005-10-31 at 06:16 +0000, mmitchel at gcc dot gnu dot org wrote: > > ------- Comment #9 from mmitchel at gcc dot gnu dot org 2005-10-31 06:16 > ------- > Danny, when you refer to PR 24288, do you mean a different PR? I don't see > the > relevance of PR 24288, but I do remember discussing this issue with you and > Jason. I was actually wrong. This one is due to empty base differences. The structure on the LHS gets an extra empty base, and it places it in the padding of one of the types so that we think the LHS and RHS have a different number of fields, but in actuality they differ only in empty bases. We expect that types on the LHS and RHS of a simple structure assignment have exactly the same number of fields. I have a patch for this (which is uglier than i'd like, but c'est la vie) > > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24351