From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 78C503883013; Tue, 18 Jun 2024 22:35:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78C503883013 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718750157; bh=Qo6jnp2I0it1Guk8IKsCPdt6jW+a2VUI7jyZQ51lM4I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M2SOX8gEsvr2frYUtDT6nsYHXC2US2nQAkImTcISPquCGsSxgx1uR/2iwAE/TMAA5 mH8fZwbnK/JesvNv90vl+R1EMb0/pw/ZhPAHRiNGeO+fpdiJSkDrRXruN8fWCuVFS6 SGmRAUXLui/DQBhFylFxpPfwDUEJAiFur9QT6fCQ= From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/115535] negative value returned by 'Image applied to array with nonnegative integer component Date: Tue, 18 Jun 2024 22:35:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: NEW 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: everconfirmed bug_status cf_reconfirmed_on short_desc cc 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=3D115535 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-06-18 Summary|Image attribute on arrays |negative value returned by |of unsigned values |'Image applied to array |incorrectly prints a signed |with nonnegative integer |representation under |component |certain conditions | CC| |ebotcazou at gcc dot gnu.o= rg --- Comment #1 from Eric Botcazou --- Build_Elementary_Put_Image_Call uses the signedness of the base type but the size of the first subtype, hence the discrepancy.=