This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/60647] [4.9 Regression] ICE in visit_ref_for_mod_analysis, at ipa-prop.c:2112
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 28 Mar 2014 11:54:21 +0000
- Subject: [Bug middle-end/60647] [4.9 Regression] ICE in visit_ref_for_mod_analysis, at ipa-prop.c:2112
- Auto-submitted: auto-generated
- References: <bug-60647-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60647
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Non-K&R that ICEs the same way (with call through incompatible function pointer
type):
struct _wincore
{
int width, height;
};
static void
foo (void *dpy, struct _wincore *winInfo, int offset)
{
fn1 (winInfo->height);
}
static void
bar (void *dpy, int winInfo, int *visrgn)
{
((void (*) (void *, int, int)) foo) ((void *) 0, winInfo, 0);
fn2 (0, 0, visrgn);
}
void
baz (void *dpy, int win, int prop)
{
bar ((void *) 0, 0, (int *) 0);
}