From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90240 invoked by alias); 8 Dec 2017 08:51:11 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 90230 invoked by uid 89); 8 Dec 2017 08:51:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FREEMAIL_REPLY,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=H*Ad:U*damian, damian@sourceryinstitute.org, damiansourceryinstituteorg X-HELO: mail-yb0-f169.google.com Received: from mail-yb0-f169.google.com (HELO mail-yb0-f169.google.com) (209.85.213.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Dec 2017 08:51:08 +0000 Received: by mail-yb0-f169.google.com with SMTP id 184so4035352ybw.12 for ; Fri, 08 Dec 2017 00:51:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=IfqztZApbZA+jPYhTuGR0NSXMLN0edwIUM2sMS2Rhy8=; b=UdsK+D8uxzxlps6vkUlJDajJYDaxvx2XvJhTgU0TEdwSMYv3pTgSv0fytDKh6xltIP soB1yrMqKmdg0uPDJn/W7Q34uwho3JSf/C0pa7o10l40xjGHL1kBBNxJUVr87wZX8Kh7 nXySP4F/vj9xMA7nKqRRSDX73ur2i3Trb1qoaKCI15IbtwLVuwgrpd2ZnshaBxZF6dTu CVmhTFJQybbDOTEEy2FeX1VKeMs3lhO1LyisOFArteSaEhKEwoITJzhzkWSdT+8wRKCH 9WZftLIJDHoMHS7iBsbcN3ptvqFr/Pdyd0VXN/vNdkcwtxMMTWLFNSen19wz0e/tR+Ox j6Mg== X-Gm-Message-State: AKGB3mJVUgha40XUPCvaDXEM7ZBCjP8AdxsRFwSp/nAK3bVlVo5E41yr q/X+73Qpg8pT/8o1DdUvLEA6gOoSPNoXLyjcxXg= X-Google-Smtp-Source: AGs4zMY5xy5Pb4+0R1HExnOlUKgvA5GOeruqox8h9LQvf6LjTwJGgsOzXiPTexNyrxkRlcA1WVyY3YbMmwg3/RfAsRU= X-Received: by 10.37.160.145 with SMTP id y17mr882787ybh.321.1512723066706; Fri, 08 Dec 2017 00:51:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.156.81 with HTTP; Fri, 8 Dec 2017 00:51:06 -0800 (PST) In-Reply-To: <23CDABFE-781E-4DAB-8F96-66AAF1698372@gmx.de> References: <23CDABFE-781E-4DAB-8F96-66AAF1698372@gmx.de> From: Paul Richard Thomas Date: Fri, 08 Dec 2017 08:51:00 -0000 Message-ID: Subject: Re: Bug 83319 - [7/8 Regression] ICE on use of allocatable component in derived type coarray defined in module To: Andre Vehreschild Cc: Damian Rouson , gfortran Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00025.txt.bz2 Hi Damian and Andre, That's #83076 that Andre is referring to. Dominique uncovered some issue with it and I just have not had time to return to it. I will try to deal with it in the next couple of days. However, my immediate priority, once I am past the daytime work, is to get PDT descriptors up and running. Regards Paul On 8 December 2017 at 07:49, Andre Vehreschild wrote: > Use gcc-trunk. I think Paul fixed that. But only on trunk. I don't know whether he back ported to gcc-7, but if he did then to 7.3 > > - Andre > > Am 8. Dezember 2017 05:12:58 MEZ schrieb Damian Rouson : >>Presumably the internal compiler error (ICE) demonstrated below is >>somehow related to the known regression in support for allocatable >>components in derived type coarrays, which is issue 422 on the >>OpenCoarrays repository. OpenCoarrays issue 422, however, generates a >>runtime error message inside the coarray ABI, whereas this issue >>generates a compile-time error message even without linking to >>OpenCoarrays. Also, OpenCoarrays issue 422 involves communication; >>whereas this is much more basic: the ICE appears when I do anything >>with the allocatable component so this is an even more serious >>regression on top of the already very serious regression described in >>issue 422. (Besides allocating the component as shown below, I also >>tried a source allocation and an assignment to it.) The ICE disappears >>if the derived type definition is moved into the main program. >> >>This is somewhat similar to PR 78935, but 78935 was fixed 11 months ago >>and this seems sufficiently different to warrant a separate PR rather >>than reopening 78935. >> >>This ICE occurs with today's 7 branch, with 7.2.0, and with the trunk >>dated 20170921. The code compiles cleanly with GCC 6.4.0. >> >>$ cat allocatable-component-of-dt-coarray.f90 >> >>module foo_module >> implicit none >> type foo >> integer, allocatable :: i(:) >> end type >>end module >> >> use foo_module >> implicit none >> type(foo), save :: bar[*] >> allocate(bar%i(1)) >>end >> >>$ gfortran -fcoarray=lib -c allocatable-component-of-dt-coarray.f90 >> >>allocatable-component-of-dt-coarray.f90:8:0: >> >> use foo_module >> >>internal compiler error: in gfc_conv_descriptor_token, at >>fortran/trans-array.c:305 >>0x6a9130 gfc_conv_descriptor_token(tree_node*) >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/trans-array.c:303 >>0x6d6858 gfc_trans_structure_assign(tree_node*, gfc_expr*, bool, bool) >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/trans-expr.c:7567 >>0x6d0b47 gfc_conv_structure(gfc_se*, gfc_expr*, int) >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/trans-expr.c:7686 >>0x6df17e gfc_trans_assignment_1 >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/trans-expr.c:9984 >>0x6be5ff generate_coarray_sym_init >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/trans-decl.c:5188 >>0x68dc72 do_traverse_symtree >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/symbol.c:4009 >>0x6bdc95 generate_coarray_init >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/trans-decl.c:5238 >>0x6c9954 gfc_generate_function_code(gfc_namespace*) >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/trans-decl.c:6273 >>0x65b736 translate_all_program_units >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/parse.c:6074 >>0x65b736 gfc_parse_file() >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/parse.c:6274 >>0x69ff5f gfc_be_parse_file >> /home/rouson/Desktop/Builds/opencoarrays/prerequisites/downloads/gcc-7-branch/gcc/fortran/f95-lang.c:204 >>Please submit a full bug report, >>with preprocessed source if appropriate. >>Please include the complete backtrace with any bug report. >>See for instructions. >> >>$ gfortran --version >>GNU Fortran (GCC) 7.2.1 20171208 > > -- > Andre Vehreschild * Kreuzherrenstr. 8 * 52062 Aachen > vehre@gmx.de * Tel. +49 178 3837536 -- "If you can't explain it simply, you don't understand it well enough" - Albert Einstein