https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126571
Bug ID: 126571
Summary: [17 Regression] ICE with incompatible types in 'PHI'
argument 1
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: ktkachov at gcc dot gnu.org
Target Milestone: ---
typedef void (*FP) (void);
int
f (int c, FP fp, int *q)
{
int r;
if (c)
r = *(int *) fp;
else
r = *q;
return r + 1;
}
ICEs on aarch64 at -O2
