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/24238] [4.1 Regression] ICE: verify_ssa failed "statement makes a memory store, but has no V_MAY_DEFS nor V_MUST_DEFS"



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


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