From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 748CB3858C54; Fri, 12 May 2023 11:11:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 748CB3858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683889909; bh=l+nlnnmxvf5Dk3noW+4eu5vzJCGQ3HrYSD8hhDVZN1A=; h=From:To:Subject:Date:From; b=UnEtIucSp4mQwUsvgRzjLsMYE063qdU1sGbfUpgAhZXy2N6wH+jCySi4ukH42uHGO 1qpQNo9fwE1+mdnOn+QrKbFIIUIyrpr+xQHJgBktXpoxUaXN3P3T/tNI+ZbDY1d2mg DNiQ5gJoXlbRAi404DIgRi41P86QAwPhNq4qXj9E= From: "fw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109826] New: Incompatible pointer types in ?: not covered by -Wincompatible-pointer-types Date: Fri, 12 May 2023 11:11:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: fw at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109826 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=3Dincompatible-pointer-types, wh= ich it probably should given what the warning is about.=