From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 80522384641A; Wed, 24 Apr 2024 20:45:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80522384641A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713991517; bh=EY3nNwMVgPNscWiYx37uAmdJjwWDL04T42F4FS1A5QM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NhM9FJmaGNaKBuBuS2XKLg2mWdQH762Mi+kYlm233qmUuyZwnBF82jvcfQnFJ0Qq/ lqvO1zsmsuzYaH9e4sq7tASHbIGm1OxJJyjiqx0Yr1YACU1yyMqC+oXuKqsaDf639R dRimy1bKN4xwdC+8owBZwF7Ai1WVe8Q9Uff7tqM4= From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/114815] [PDT] internal compiler error: Segmentation fault - on creating type with len parameter and dependent on it character array Date: Wed, 24 Apr 2024 20:45:16 +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: ice-on-invalid-code 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: 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 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org --- Comment #3 from Paul Thomas --- (In reply to anlauf from comment #2) > The code in comment#0 is invalid. >=20 > Intel: >=20 > pr114815.f90(5): error #8737: For a default initialized component every t= ype > parameter and array bound must be a constant expression. [GENDERS] > end type Student_Group > ^ >=20 > NAG: >=20 > Error: pr114815.f90, line 4: Type STUDENT_GROUP default-initialised > component GENDERS has a non-constant array bound > Errors in declarations, no further processing for LAB_1_4 >=20 >=20 > When commenting the default initialization, the code compiles with gfortr= an. My first project once 14-branch is released will be to put PDTs to rights. Unfortunately, the representation is plain wrong and I don't see any point = in cosmetic fixes until that is put right. Sorry Paul=