This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20103] [4.0/4.1 regression] ICE in create_tmp_var with C99 style struct initializer
- From: "aoliva at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Mar 2005 10:14:58 -0000
- Subject: [Bug c++/20103] [4.0/4.1 regression] ICE in create_tmp_var with C99 style struct initializer
- References: <20050220111234.20103.falk@debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From aoliva at gcc dot gnu dot org 2005-03-18 10:14 -------
Subject: Re: [PR c++/20103] failure to gimplify constructors for addressable types
On Mar 18, 2005, Alexandre Oliva <aoliva@redhat.com> wrote:
> On Mar 17, 2005, Richard Henderson <rth@gcc.gnu.org> wrote:
>>> +cp_gimplify_compound_literal_expr (tree *expr_p, tree *pre_p, tree *post_p)
>>> + return gimplify_expr (expr_p, pre_p, post_p, is_gimple_val, fb_rvalue);
>> You don't need to recurse here. Just return GS_OK.
> Neat!
FWIW, removing the recursion enabled me to remove the post_p argument
as well, but I only realized that after posting the patch. I'm not
reposting it right now for this trivial reason, but consider the
patch with this additional change.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20103