This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17483] [4.0 regression] ICE at -O3 when passing a reference.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2004 05:55:58 -0000
- Subject: [Bug tree-optimization/17483] [4.0 regression] ICE at -O3 when passing a reference.
- References: <20040914200117.17483.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-15 05:55 -------
Here is another example, and it does not happen in the C front-end because NRV happens later:
struct A { int i; };
struct A foo()
{
struct A a;
int *aaa = &a.i;
*aaa = 0;
return a;
}
void bar()
{
foo();
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17483