From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id D14B83858D28 for ; Fri, 7 Apr 2023 09:45:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D14B83858D28 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pkieU-0004Kq-Bc for fortran@gcc.gnu.org; Fri, 07 Apr 2023 11:45:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: fortran@gcc.gnu.org From: Harald Anlauf Subject: Re: Ping! [Patch, fortran] PR87477 - [meta-bug] [F03] issues concerning the ASSOCIATE statement Date: Fri, 7 Apr 2023 11:41:52 +0200 Message-ID: <67044cbd-2fa5-8abf-e1d2-42fb150d0124@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Content-Language: en-US In-Reply-To: Cc: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,NICE_REPLY_A,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: Message-ID: <20230407094152.hyNowuya0LrlXRE-5KJ3OYCj9rbfpHJMkge9KKWpXTA@z> Hi Paul, I don't see the new testcases. Is this an issue on my side, or did you forget to attach them? Thanks, Harald On 4/7/23 09:07, Paul Richard Thomas via Gcc-patches wrote: > Dear All, > > Please find attached a slightly updated version of the patch with a > consolidated testcase. The three additional testcases are nothing to do > with associate and test fixes of character related bugs. > > OK for mainline? > > Cheers > > Paul > Fortran: Fix some of the bugs in associate [PR87477] > > 2023-04-07 Paul Thomas > > gcc/fortran > PR fortran/87477 > * resolve.cc (resolve_assoc_var): Handle parentheses around the > target expression. > (resolve_block_construct): Remove unnecessary static decls. > * trans-array.cc (gfc_conv_expr_descriptor): Guard string len > expression in condition. Improve handling of string length and > span, especially for substrings of the descriptor. > (duplicate_allocatable): Make element type more explicit with > 'eltype'. > * trans_decl.cc (gfc_get_symbol_decl): Emit a fatal error with > appropriate message instead of ICE if symbol type is unknown. > * trans-expr.cc (gfc_get_expr_charlen): Retain last charlen in > 'previous' and use if end expression in substring reference is > null. > (gfc_conv_string_length): Use gfc_conv_expr_descriptor if > 'expr_flat' is an array. > (gfc_trans_alloc_subarray_assign): If this is a deferred string > length component, store the string length in the hidden comp. > Update the typespec length accordingly. Generate a new type > spec for the call to gfc_duplicate-allocatable in this case. > * trans-io.cc (gfc_trans_transfer): Scalarize transfer of > deferred character array components. > > > gcc/testsuite/ > PR fortran/87477 > * gfortran.dg/finalize_47.f90 : Enable substring test. > * gfortran.dg/finalize_51.f90 : Update an error message. > > PR fortran/85686 > PR fortran/88247 > PR fortran/91941 > PR fortran/92779 > PR fortran/93339 > PR fortran/93813 > PR fortran/100948 > PR fortran/102106 > * gfortran.dg/associate_60.f90 : New test > > PR fortran/98408 > * gfortran.dg/pr98408.f90 : New test > > PR fortran/105205 > * gfortran.dg/pr105205.f90 : New test > > PR fortran/106918 > * gfortran.dg/pr106918.f90 : New test