https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109826
Bug ID: 109826 Summary: Incompatible pointer types in ?: not covered by -Wincompatible-pointer-types Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- This: int *p; long *q; char * f (int x) { return x ? p : q; } warns as follows: warning: pointer type mismatch in conditional expression So it doesn't fail to compile with -Werror=incompatible-pointer-types, which it probably should given what the warning is about.