From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 71D2E3858D39; Fri, 14 Apr 2023 05:07:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71D2E3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681448842; bh=Y5O+5Sk2mWGfrg9uGeuPhcsmyELdj34wKZAwWJnCDzE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y2twdJ93R8V6i+6ao7AG8ypPdp6FygWbJJfn9uL1XuWkPKMwX5BLtbF3U1jr/YtPQ +wY45H9sWyh6slfOoil05cuHaeb6j6NeyvH/dZSeNEbDxoX0LEGFW02rjWRXxFOvMN a8sqACHRUVN3sXKjDaBK0LLxlaqaD3AjhGXHNfiw= From: "mscfd at gmx dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/105800] Segfault deallocating a class, dimension(:) array Date: Fri, 14 Apr 2023 05:07:21 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: mscfd at gmx 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: 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=3D105800 --- Comment #1 from martin --- Created attachment 54856 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54856&action=3Dedit fixed testcase class_dealloc.f90 As I just see, the first attachment does not show the bug as return value "= a" of function create is declared as "class(t), dimension(:), pointer". And as described in the initial report, with class instead of type, there is no er= ror. The fixed attachment declares "a" as "type(t), dimension(:), pointer". This shows the described error. It is still present in the current 13 development branch.=