From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id 2C3D33857012; Sat, 17 Apr 2021 14:36:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2C3D33857012 Received: by mail-lf1-x12f.google.com with SMTP id x19so18797054lfa.2; Sat, 17 Apr 2021 07:36:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5hK+8SwFRAv2wijq06i9MAYwFcG67/W22Fx0sNdqQ58=; b=IyY82jDdquIJrgRVKCPGjYV0GG+a7Ky/A1SMRtVK4pcfkGH48cmH0G/M3s+Ybp99g1 7NrfKKpWFgDIE2qh99lWYm0WtPXxbvffcyQV5wIJiZ3BHmjuVC/o9Ew2EOYM++rGpX6g jxTrHGK8ncelCdvlLmGsf1+mdDooM5gRU7b8UaLP/O+wNA0j47wbfXxgT5vsh3tsNxg3 xe2ZtFsNoJUjMqpz7D/QFXBPeUl7MkXhtDdiVS0Djkz4wsEKa68hqL2NnaxqPrbfUK46 l20iwP/55LlDGcwqPeMlARu0KuTqE9pUrR8dQpL7AgUV/yJ1hTFuANan/XyXOo1M8+W0 hu7w== X-Gm-Message-State: AOAM532vGuS4XiUwOrtVQ8+ysO+NnphTRjczIwOtuMdszmdQRcdqfvW4 ovYLIvvP2uHKIF7fHI0ZoCzIlRVfnHyp2IbjX0g= X-Google-Smtp-Source: ABdhPJwaPTc27S4O1WkxXp+GPV6/4MuUVTuVm7JFKL6EfVeb3rtbG/1kI6wG25QnvslLHRhhh836qPYEOYyLN/Guz98= X-Received: by 2002:ac2:4192:: with SMTP id z18mr6328044lfh.19.1618670206926; Sat, 17 Apr 2021 07:36:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Paul Richard Thomas Date: Sat, 17 Apr 2021 15:36:35 +0100 Message-ID: Subject: Re: [Patch, fortran v2] PR fortran/84006, PR fortran/100027 - ICE on storage_size with polymorphic argument To: =?UTF-8?Q?Jos=C3=A9_Rui_Faustino_de_Sousa?= Cc: "fortran@gcc.gnu.org" , gcc-patches X-Spam-Status: No, score=-2.4 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.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Apr 2021 14:36:51 -0000 Hi Jose, Please take a look at my reply on the PR, which points to PR98534. Regards Paul On Fri, 16 Apr 2021 at 20:47, Jos=C3=A9 Rui Faustino de Sousa via Fortran < fortran@gcc.gnu.org> wrote: > Hi All! > > Proposed patch to: > PR84006 - [8/9/10/11 Regression] ICE in storage_size() with CLASS entity > PR100027 - ICE on storage_size with polymorphic argument > > Patch tested only on x86_64-pc-linux-gnu. > > Add branch to if clause to handle polymorphic objects, not sure if I got > all possible variations... > > Now with a new and extended test. > > Thank you very much. > > Best regards, > Jos=C3=A9 Rui > > Fortran: Fix ICE using storage_size intrinsic [PR84006, PR100027] > > gcc/fortran/ChangeLog: > > PR fortran/84006 > PR fortran/100027 > * trans-intrinsic.c (gfc_conv_intrinsic_storage_size): add if > clause branch to handle polymorphic objects. > > gcc/testsuite/ChangeLog: > > PR fortran/84006 > * gfortran.dg/PR84006.f90: New test. > > PR fortran/100027 > * gfortran.dg/PR100027.f90: New test. > --=20 "If you can't explain it simply, you don't understand it well enough" - Albert Einstein