From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E9A343858D28; Tue, 20 Feb 2024 21:10:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E9A343858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708463411; bh=RBitvvLweEELONm2IN3mtGtLXKzmV75EcD2KnVoS/Mg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DDinIAxy2XyHQu5qlg7z2AtZvKOktT1L6aHvxEuOHdQADuQ+Z1H1VU0V/tBEFXrxD S8fmRXzREPnR0BCZTnKBBdQJjf0S5TUcN1VzAr4w7jlGbgvEjm9VGrKWjTaCV1Hs9Z BC1oK1ObNZfREoFVAa/u/Cj/0Qwjoo/UHJ4MiAZI= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/114001] is_contiguous considers unlimited polymorphic dummy always as contiguous Date: Tue, 20 Feb 2024 21:10:10 +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: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org 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: keywords 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=3D114001 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code --- Comment #1 from anlauf at gcc dot gnu.org --- gfc_is_simply_contiguous has the following code: if (expr->ts.type !=3D BT_CLASS && ((part_ref && !part_ref->u.c.component->attr.contiguous && part_ref->u.c.component->attr.pointer) || (!part_ref && !sym->attr.contiguous && (sym->attr.pointer || (sym->as && sym->as->type =3D=3D AS_ASSUMED_RANK) || (sym->as && sym->as->type =3D=3D AS_ASSUMED_SHAPE))))) return false; This obviously ignores the CLASS case.=