t.f90 ----- SUBROUTINE int_gen_ti_header_char( hdrbuf, hdrbufsize, itypesize, & DataHandle, Element, VarName, Data, code ) CALL int_gen_ti_header_c ( hdrbuf, hdrbufsize, itypesize, 1, & DataHandle, DummyData, DummyCount, code ) END SUBROUTINE int_gen_ti_header_char
t.c --- extern void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n); char *p; int int_gen_ti_header_c_ (char * hdrbuf, int * hdrbufsize, int * itypesize, int * typesize, int * DataHandle, char * Data, int * Count, int * code) { memcpy (typesize, p, sizeof(int)) ; memcpy (Data, p, *Count * *typesize) ; } nicely sort-of-invalid, int_gen_ti_header_c_ stores into a CONST_DECL. -- Summary: ICE in refs_may_alias_p_1, at tree-ssa-alias.c:855 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: lto Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41855