From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4D98B3858D1E; Tue, 16 May 2023 23:41:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D98B3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684280472; bh=i7VKx/p43Xis5KcA4Fi0qHZSRVjK6AZnwDoeNKK0+NA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pBfJMpH3N7dmRw6msMLvInH1OcBdwFcN+q6U9+risf/4JLH9InjcJ7c4UkupJyhSn W0XYa4y2HcbgswTx8z52ABS5M/f/KAQ5+8Dt/RQVK8EpIWOAHhub3Oo607SXRFDEza xBlqBw8YxE6aB3OWAswPewd5HqNFOPnMLsPNXMmA= From: "gnugcc at marino dot st" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/109881] GNAT BUG DETECTED during RTL pass, raised TYPES.UNRECOVERABLE_ERROR Date: Tue, 16 May 2023 23:41:12 +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: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gnugcc at marino dot st 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=3D109881 --- Comment #2 from John Marino --- I found the problematic line. I changed this line: data_in :=3D read_compressed_data (input_stream, planned, bytes_read); to: bytes_read :=3D read_compressed_data (input_stream =3D> input_stream, bytes_planned =3D> planned, data_in =3D> data_in); and the read_compressed_data function was changed from: function read_compressed_data (input_stream : not null SIO.Stream_Access; bytes_planned : Natural; bytes_read : out Natural) return data_in_type; to: function read_compressed_data (input_stream : not null SIO.Stream_Access; bytes_planned : Natural; data_in : out data_in_type) return Natural; The rearrangement of the function avoided the GNAT bug.=