From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9A7B5385841B; Sat, 10 Jun 2023 19:55:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A7B5385841B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686426913; bh=qYBC/fFkbeIKWzB7ifB0ttxl/TYu5wG2o//YJL/B+iM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JCeicQTJHyUfdFRi1hzWwLI2g1QpQ0VAlzESf6tcucblZOOhGj4GUbVIV7UOpJKJ6 omqA+JR5CV3xQH9Nq6Xf3/hngjb8ZSGVh7KYYSLJYvc9JTiW/LPieSgPtXYwGLqI3N ZWs0hz89Ngx0ssvhq5/OpcJwVGEkB5DZitwUwOOU= From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86277] Presence of optional arguments not recognized for zero length arrays Date: Sat, 10 Jun 2023 19:55:13 +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: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D86277 --- Comment #16 from Mikael Morin --- (In reply to anlauf from comment #13) > (In reply to Mikael Morin from comment #12) > > (In reply to anlauf from comment #8)=20 > > > Enabling derived types does not work when they occur in an array cons= tructor, > > > and the code would ICE on empty constructors of derived type. > > >=20 > >=20 > > Looking at the code, I couldn't foresee where the ICE would happen, so I > > tried it myself. > > I see no ICE here. >=20 > I got an ICE with pointer_check_14.f90 and realloc_on_assign_18.f90 > which have an empty DT with no component. >=20 They work here. I must be doing something stupidly wrong. My compiler is a bit outdated, but not that much: GNU Fortran (GCC) 14.0.0 20230529 (experimental)=