This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24351] [4.1 Regression] ICE in do_simple_structure_copy with some C++ code
- From: "dberlin at dberlin dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2005 13:53:57 -0000
- Subject: [Bug tree-optimization/24351] [4.1 Regression] ICE in do_simple_structure_copy with some C++ code
- References: <bug-24351-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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