From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by sourceware.org (Postfix) with ESMTPS id 845373858D28; Fri, 24 Mar 2023 06:37:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 845373858D28 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-io1-xd33.google.com with SMTP id m22so414777ioy.4; Thu, 23 Mar 2023 23:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679639834; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/Y/GzMuwsWZtTkx8kfxgObYMirfa1JQhRghV3NlYCz4=; b=pV3q6fARl3upz2bd7oghpv5atwwQ67YYg1hv0+boOpYL8bwQeU5NQ3Gzz1T0zeePhf HTkVbpbwFggyWMq0rcn9wC8M3a8HMRwayfpkuW25yciaW/1qgTEMeUfR/SZASw/EYrxL hnoDOBmTYiUKoGaoJTDtEULcKfmnHMt0iblw6gIKS2dKyNAeowPhKCCyH1MDLMug4MEJ ZLdTqycSuKYGf2jujRSmUNjzhfsf0LYg8gKnC+8w2S7qmkLB0A/6tAtdEjqEWojSYzTl UwVG5Uy1/pgVxMxc98ww/B4mxp6ib+V3XkC0QTET8+q5iH/SPVu0REmavj27sJsiOFAQ 6MPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679639834; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/Y/GzMuwsWZtTkx8kfxgObYMirfa1JQhRghV3NlYCz4=; b=OsBjL2onTr/toPOd4Eiq8rhw7MSSRh/QBSMTFBPlEjMEPRf/RE3QDA0gCRMub9jLqJ hs4fOILmw6n/18QjzF00+uKfD58visbDVViAnZnaLn4b0tfMXdeQo+5BwcPmx9KsFdZz +XUu/wVDhUPu7ZY8c25g3QQr0ZtOv1z5BgY5ZxNHpn6hmtoeMlMpEUpYLB/NKutePn/r 18qI0qYfka0vypoidPG8DIBfV8qQFsGcJHgrWUv4hshoI5cdrZCNmXHvPUJn2PZs2157 zSfgWqOenjRM84qlYTzi4x5cGqYGmNGO654Yp27fU4ppWVFZIqvqG8iWH3K+BXGz/ARk vpTQ== X-Gm-Message-State: AO0yUKW4ayCXnswiLsRE39ARC/7yolHZ4RpYxRlQ73UYLBLjQIza9yqL LYmZFuTqhz8UpzmYY96cQyTGLouog8OpcDFhHnpmdTOX X-Google-Smtp-Source: AKy350Z+gp6TBXjMnCCJR3oWPis8QzpXzaodU8Nt2ZHsr2VfQUOLoMbSKGh+ia/dBiHIs4cL+IWxzydkUwmj4Ue45Qw= X-Received: by 2002:a05:6870:8897:b0:17e:6e31:9aa4 with SMTP id m23-20020a056870889700b0017e6e319aa4mr778689oam.6.1679639426087; Thu, 23 Mar 2023 23:30:26 -0700 (PDT) MIME-Version: 1.0 References: <20230301222856.12300c64@nbbrfq> <30E6853A-2633-4483-A2B5-8691C7AD9F95@gmail.com> <89899dd9-bee3-e23a-5b50-450641030561@gmail.com> In-Reply-To: <89899dd9-bee3-e23a-5b50-450641030561@gmail.com> From: NightStrike Date: Fri, 24 Mar 2023 02:30:14 -0400 Message-ID: Subject: Re: [PATCH][stage1] Remove conditionals around free() To: Jerry D Cc: GCC Fortran , GCC Patches Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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: On Fri, Mar 3, 2023 at 10:14=E2=80=AFPM Jerry D via Fortran wrote: > I am certainly not a C++ expert but it seems to me this all begs for > automatic finalization where one would not have to invoke free at all. > I suspect the gfortran frontend is not designed for such things. +1 for RAII