Bug 93957 - [10 Regression] ICE (regression) passing assumed rank arrays with bind(c)
Summary: [10 Regression] ICE (regression) passing assumed rank arrays with bind(c)
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 10.0
: P4 normal
Target Milestone: 10.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2020-02-27 09:16 UTC by José Rui Faustino de Sousa
Modified: 2020-03-27 11:15 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Code triggering ICE (257 bytes, text/x-matlab)
2020-02-27 09:16 UTC, José Rui Faustino de Sousa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Rui Faustino de Sousa 2020-02-27 09:16:51 UTC
Created attachment 47921 [details]
Code triggering ICE

Hi all!

ICE regression probably introduced by the patch to PR92123 in:

GNU Fortran (GCC) 10.0.1 20200224 (experimental)

Best regards,
José Rui
Comment 1 GCC Commits 2020-03-27 11:13:20 UTC
The master branch has been updated by Tobias Burnus <burnus@gcc.gnu.org>:

https://gcc.gnu.org/g:62ede14d30f5d083f1ab23bcab6e0e3c9c649006

commit r10-7416-g62ede14d30f5d083f1ab23bcab6e0e3c9c649006
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Fri Mar 27 12:12:36 2020 +0100

    [Fortran] Fix ICE with deferred-rank arrays (PR93957)
    
            PR fortran/93957
            * trans-array.c (gfc_alloc_allocatable_for_assignment): Accept
            nonallocatable, nonpointer deferred-rank arrays.
    
            PR fortran/93957
            * gfortran.dg/assumed_rank_19.f90: New.
Comment 2 Tobias Burnus 2020-03-27 11:15:35 UTC
FIXED on the trunk / GCC 10.

Thanks for the report!