From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 445293858D1E; Tue, 21 May 2024 12:03:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 445293858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716293039; bh=7jESey3elkzf0WSO+GvKPv9pI/PQeJGfLPEmTW1yoSo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DMoxvTvSAZHdv/e2o7K/JoadK0BTYuxv3xDAV9rF/UeYXWC9ktMVDBcWQEk5wuATe qeTFwWggyfe6Mf0i33zIChNdwmvSoZgpVYWPYJ4cDAWfErsk3RPMpAyruXT7hbn7FG B9Wa5ZHVY9RkQNwNe0n/2w0UDr8QyS9ZV9jyJxzo= From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/115070] [13/14/15 Regression] ICE using IEEE_ARITHMETIC in a derived type method with class, intent(out) Date: Tue, 21 May 2024 12:03:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to attachments.created 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=3D115070 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gn= u.org --- Comment #9 from Paul Thomas --- Created attachment 58263 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58263&action=3Dedit Patch that fixes this PR Somehow, when a null is returned from the call to gfc_trans_class_init_assi= gn, the messing around with blocks at the end of gfc_generate_function_code los= es the declaration. I tried giving the ieee calls their own block and merging = it to the top of 'body'. That fixed this PR but broke a number of ieee tests in the testsuite. This fix is not very elegant but it does work and even regtests OK. I am continuing to work on it before submitting this patch. Paul=