This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]