This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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"
- 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: 6 Oct 2005 14:32:35 -0000
- Subject: [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"
- References: <bug-24238-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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