[Bug tree-optimization/17483] [4.0 regression] ICE at -O3 when passing a reference.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 15 05:55:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list