From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D7EA33858CDB; Wed, 29 May 2024 21:03:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7EA33858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717016609; bh=IyEUK/9945z7wZQ7zacdWI59RfJ0oLhGeMDjKaFykKc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LUERtA02ZdAKkNFR2zwZPsBG54dWN03ibJmlBaK3Hhie+yVjpJpMLQBHxM1FOGIfp HRHAOgy4x/IwPnsFno+H5cAamZiPXfhahmU+QCmp+LfCiOQ4zeDd4t1b5PYBHfXhjJ XRGZuXKDFspGXy5B2pUg3ee3O1AGuGJjfRQrN7Zo= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104130] [12/13 Regression] ICE in gfc_add_class_array_ref, at fortran/class.c:274 since r12-4467-g64f9623765da3306 Date: Wed, 29 May 2024 21:03:29 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_fail cf_known_to_work cc short_desc 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=3D104130 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |12.3.1, 13.3.0 Known to work| |14.1.0, 15.0 CC| |anlauf at gcc dot gnu.org Summary|[12/13/14/15 Regression] |[12/13 Regression] ICE in |ICE in |gfc_add_class_array_ref, at |gfc_add_class_array_ref, at |fortran/class.c:274 since |fortran/class.c:274 since |r12-4467-g64f9623765da3306 |r12-4467-g64f9623765da3306 | --- Comment #5 from anlauf at gcc dot gnu.org --- I doubt that the code is valid. NAG rejects it: NAG Fortran Compiler Release 7.2(Shin-Urayasu) Build 7200 Warning: pr104130.f90, line 7: Unused dummy variable X Error: pr104130.f90, line 3: Incorrect data type CLASS(*) (expected INTEGER) for argument X (no. 1) of S Starting with r14-870, the testcase is also rejected by gfortran: pr104130.f90:3:9: 3 | call s(transpose(z)) | 1 Error: Unlimited polymorphic actual argument at (1) is not matched with eit= her an unlimited polymorphic or assumed type dummy argument Updating known-to-work.=