From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A09923858C5F; Fri, 12 May 2023 11:15:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A09923858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683890129; bh=yePqVcJGH3WaqlKfbLvg3zIRvtqCP9vmVw8mRE9jIpA=; h=From:To:Subject:Date:From; b=Dp66VHJ5Lu82YGGQ0AnmD01Lf9QtFrnemTRmQf71KgtoIPT9ZSUlQxYXwgHVWajXK Ax7IIge+eMZO4KvTT1LhwCfJawkItC9c+Pc4dBwXiYIG9eN5q/v+g3xbxtaRiqM/j7 p4U9V4b2Ho3AvZAJAa3L5KPG4a8QaD86cIA4wjrQ= From: "fw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109827] New: Pointer/integer mismatch in ?: not covered by -Wint-conversion Date: Fri, 12 May 2023 11:15:29 +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=3D109827 Bug ID: 109827 Summary: Pointer/integer mismatch in ?: not covered by -Wint-conversion 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; void * f1 (int x) { return x ? p : q; } void * f2 (int x) { return x ? q : p; } warns as (twice): warning: pointer/integer type mismatch in conditional expression So it does not error with -Werror=3Dint-conversion, which I think is unexpe= cted.=