From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B4B7C3849AF1; Tue, 16 Apr 2024 07:02:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4B7C3849AF1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713250923; bh=4DGCfAWeJ5UVU1BnZxBPbPcd/KKqig2JoVDAZNJCGmo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Hv6Uw3zhNP0NnRfbnV2m9u6IB4BY6mbCsaAjTO+G1Z2VF6NbU3hjFOOBtoxFVlANM DEiTgGsML8Jhk+dGj6Lt4qGt+0kbHNekyT00uw0X/VynNfRpmDM+MzLeSDOmlfW+NA m6KmwK9eUD1gUhZfMMZ1kMX0O8IzqvFaz3cnZ3bI= From: "muecker at gwdg dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/97100] -Wformat checks all arms of _Generic leading to irrelevant type expectation warnings Date: Tue, 16 Apr 2024 07:02:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: muecker at gwdg dot de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D97100 --- Comment #11 from Martin Uecker --- A conforming C compiler has to diagnose all violations of constraints with = the same correct type of x in all branches (not the type it would have in anoth= er context where a different is taken).=