From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ABA39385AE58; Thu, 30 Nov 2023 14:15:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ABA39385AE58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701353733; bh=IU87RbrGd4Py1q/PIBd1NgaNe0HJXPeM68AYjZa4gUQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RLFIGpSwNff7wTAb+BHWMK8rUmeqXNd4KBoI9XLTxR5DWx7oZKzT5bLeH9l4JGJJQ 5hliii704qsgcRplIbzC10p7qANxqMt0XPwv3pnLTkvjYo+OCWruXemixD4/D52ntA TQY0LX/Jxv7iRbtSMaX+q+L4inJAXk2JOy1bcHiA= From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102689] Segfault with RESHAPE of CLASS as actual argument Date: Thu, 30 Nov 2023 14:15:31 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault 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: 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=3D102689 --- Comment #2 from Paul Thomas --- Created attachment 56730 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56730&action=3Dedit Another failing testcase With the attached, we should get: [pault@pc30 pr87477]$ rm ./a.out;ifort ~/prs/pr102689/pr1*.f90 ;./a.out type is 's' at line 0 type is 's' at line 2 type is 's' at line 3 type is 's' at line 4 type is 's' at line 5 whereas gfortran gives type is 's' at line 0 type is 't' at line 2 line 2 1275 should be 5050 type is 't' at line 3 line 3 1275 should be 5050 type is 't' at line 4 line 4 1275 should be 5050 type is 't' at line 5 line 5 1275 should be 5050=