This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11295] [3.4/3.5 regression] ICE in cp_expr_size, at cp/cp-lang.c:314 when using a non-trivial object in a compound statement expression
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2004 20:55:38 -0000
- Subject: [Bug c++/11295] [3.4/3.5 regression] ICE in cp_expr_size, at cp/cp-lang.c:314 when using a non-trivial object in a compound statement expression
- References: <20030623155039.11295.jfc@legra.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mark at codesourcery dot com 2004-02-07 20:55 -------
Subject: Re: [3.4/3.5 regression] ICE in cp_expr_size, at
cp/cp-lang.c:314 when using a non-trivial object in a compound statement
expression
wilson at specifixinc dot com wrote:
>------- Additional Comments From wilson at specifixinc dot com 2004-02-07 09:17 -------
>Subject: Re: [3.4/3.5 regression] ICE in cp_expr_size, at
> cp/cp-lang.c:314 when using a non-trivial object in a compound statement
> expression
>
>schwab at suse dot de wrote:
>
>
>>testsuite/g++.dg/ext/stmtexpr1.C
>>
>>
>
>Sorry. I misread one of your earlier emails, and was confused about
>what the actual testcase was here. Explicitly mentioning the testcase
>name helped.
>
>The following patch seems to work, and also seems to make sense. I have
>only tested this with a cross compiler build, and only against the given
>testcase.
>
>This testcase is apparently IA-64 specific only because IA-64 does not
>have REG+OFFSET memory addresses, and hence the !rtx_equal_p(temp,
>target) test in store_expr fails much more often for IA-64 than other
>targets.
>2004-02-07 James E Wilson <wilson@specifixinc.com>
>
> * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
> to expand_expr_real call, and pass in alt_rtl as last argument.
>
>
>
I was actually just testing the exact same fix.
Thanks for fixing this, even thought it was assigned to me!
Please check that in, if you would.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11295