From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 26A0B3858D38; Thu, 26 Jan 2023 07:53:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26A0B3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674719598; bh=kdeeJ7pw3cyeLJPsNaqjyeMsSJqfVCCwOQ5jPd3tkYU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x37eYVdOWYzJW8H5ZAKm10t2zvqSOWOaBSNKdNAVLx/MKYMVsguDgCHpqRaRlKQDC p0UfQpBga7ogoEJBHt06uhHBYwnVtVztJNiKp+/kNiW4qT6YLDAY7cHdmf75msMmPV Viu3xXkO4gRvB+aRbQyWOyyE5Bb6trUz6RNoVipc= From: "daniel.lundin.mail at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84764] Wrong warning "so large that it is unsigned" for __int128 constant Date: Thu, 26 Jan 2023 07:53:17 +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: 7.3.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.lundin.mail at gmail dot com 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: 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=3D84764 --- Comment #6 from Daniel Lundin --- Call it what you will, either way there is nothing here that's "so large th= at it is unsigned". The main point is that the diagnostic message is wrong. typeof(18446744073709551615) x =3D -1; Gives a 128 bit integer type with the value -1. If it was "so large that it= is unsigned" then this would have resulted in an unsigned type with an unsigned value. The diagnostic message is plain wrong and misleading.=