------- Comment #2 from pinskia at gcc dot gnu dot org  2005-10-06 14:32 -------
Here is a slightly more reduced testcase:
typedef struct SDL_Rect {
    unsigned short w, h;
}SDL_Rect;
SDL_Rect *location();
SDL_Rect inner_location()
{
    SDL_Rect r = *location();
    r.w -= 1;
    return r;
}

Note, the reason why it works with C front-end and not the C++ front-end is
that NVR happens in the C++ front-end before anything else.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24238

Reply via email to