From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 2E6433857803; Wed, 4 Oct 2023 08:28:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E6433857803 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1c87a85332bso1402685ad.2; Wed, 04 Oct 2023 01:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696408085; x=1697012885; darn=gcc.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=WOPHkqhDkCyakPscPwEr2HZT+tjGuG+aaI4rRDo+lbI=; b=aLogY+TUGatOhe6oO7+nKlNmc4RGG/HTNOhe9wfj9ZMPwSZHyI71+XrFwjno4xteCl kdv6pErtQxkqbdHRQhK8ybNfMB2AGH5YNoL4qIDopRhwvIt/4w2F68GynNJ9JaLunxD1 G+lgFV2tztxT845/V0j7f1SSCOhRO483Ujaad6+6TVdxr2c/ANggYqWeFM6VTj+zhP4x KBVdS5ikT3GAhKgNUINqyNhaNlobFk7GbVGAVOe2zL4lXl9r5Trfd2+PkYkj4sz6z3mx AxyH91aWENaFdYjmbdU5vq1YlJg9sUfKZWkBxIxrYzHyWvqZON170HqjySr41EhHa5CD ncdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696408085; x=1697012885; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=WOPHkqhDkCyakPscPwEr2HZT+tjGuG+aaI4rRDo+lbI=; b=oK7XbBP3NfcPPxTV0S4HJ+zVZwkMyRgAfFb4mitJXB7rKe4ZDovEEIQrMJX+3neSoD Jf1LFNJ/YZXm7EEmgXQsacgnbI11ju2iA8l4syKs7r3Uh/Jd3r0fAwqd5EzbedC53H+L lCrNXGXOjZJOpGBIZdi1JOkpO3egITtAf09KOkrNjq4IY6PcsegLnW0BU20wBKRM8Rnh eNTFuTGZspx/2HI6qiAZ32XvFUuHUJfvjpTPl1p2x/ICLNvdYJ7PSh/E74W5biR01f+y m8LatObEex/CU4zgRQAgj7ahT2hrUKera4+nkj9OuSS1UsX8gif/dO6Alg1Q0Nk5HYue nZvA== X-Gm-Message-State: AOJu0Yyz/eakxGp/ErDDsTleVy5cf27RBk3jqqKE+PHdxs64WVGPv2yg HTebTGtJ1nDkisAzYV4F3UCj9bXy70yJRebtjelzMfIoqfk= X-Google-Smtp-Source: AGHT+IH1jQ20JP+/eFRFywcgRJtz1pcmLdnczkd0bq5Mne4+HF38RHEPRBPqAr+jTjVwlZ8DwjKZrGhKjZpZW2RK7dM= X-Received: by 2002:a17:90a:ce83:b0:26b:c3f:1503 with SMTP id g3-20020a17090ace8300b0026b0c3f1503mr1582612pju.17.1696408085414; Wed, 04 Oct 2023 01:28:05 -0700 (PDT) MIME-Version: 1.0 From: Paul Richard Thomas Date: Wed, 4 Oct 2023 09:27:54 +0100 Message-ID: Subject: [Patch, fortran] PR111674 - [13/14 regression] Failure to finalize an allocatable subobject of a non-finalizable type To: "fortran@gcc.gnu.org" , gcc-patches Content-Type: multipart/alternative; boundary="0000000000005346730606dfc9e0" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000005346730606dfc9e0 Content-Type: text/plain; charset="UTF-8" This was fixed as 'obvious' with an off-list OK, posted on the PR, from Harald. Applied to 13-branch and trunk then closed as fixed. Cheers Paul Fortran: Alloc comp of non-finalizable type not finalized [PR111674] 2023-10-04 Paul Thomas gcc/fortran PR fortran/37336 PR fortran/111674 * trans-expr.cc (gfc_trans_scalar_assign): Finalize components on deallocation if derived type is not finalizable. gcc/testsuite/ PR fortran/37336 PR fortran/111674 * gfortran.dg/allocate_with_source_25.f90: Final count in tree dump reverts from 4 to original 6. * gfortran.dg/finalize_38.f90: Add test for fix of PR111674. --0000000000005346730606dfc9e0--