From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 30F723858CDA; Tue, 23 Apr 2024 01:15:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30F723858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713834952; bh=Y0YihZTdajN2fMhpwYdQW+1eTjAfzzmchA1ObcLLf0Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WZKTW3B04pA4I/QP+dUk9Zabxk+H0LbXLsZa31qTEU5FlLSuvhmG+VT/5CJqzxV1z GebwYBkbKg0qo6ETMrEOGv51Y3Ta6HjHHrKQic6kd/SNx+rqQm0u6gQSpyA69GGRi3 CjsuMf7oqzUuQqeerMDRWEwatO6ieUpwFi0CfKXE= From: "kargls at comcast dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/114815] internal compiler error: Segmentation fault - on creating type with len parameter and dependent on it character array Date: Tue, 23 Apr 2024 01:15:51 +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: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kargls at comcast dot net 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: 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=3D114815 kargls at comcast dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargls at comcast dot net --- Comment #1 from kargls at comcast dot net --- (In reply to Dmitrii from comment #0) > The following code lets gfortran crash:=20 >=20 > program lab_1_4 > type Student_Group(Size) > integer, len :: Size > character :: Genders(Size) =3D "" > end type Student_Group >=20 > type(Student_Group(22)) :: Group > end program lab_1_4 >=20 > I have this crash on both my systems: > - GNU Fortran 12.2.0 on Debian 12 (bookworm) 6.1.0.-17-amd64 (virtual > machine) > - GNU Fortran 13.2.0 on MacOS on Apple M1 Sonoma 14.4.1 (Homebrew GCC 13.= 2.0) >=20 > When I compile file with provided code, it consistently results in a > segmentation fault. It doesn=E2=80=99t matter what compilation flags I se= t, it > reproduced always. Parameterized derived types (PDT) are known to have issues. It is best to avoid their use with gfortran if you can. This is likely a duplicate PR, but I no longer have the ability to edit PR metadata. :(=