https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103172

            Bug ID: 103172
           Summary: ICE in gfc_check_init_expr, at fortran/expr.c:3014
           Product: gcc
           Version: 10.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wileamyp at outlook dot com
  Target Milestone: ---

Created attachment 51758
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51758&action=edit
Source code for minimal reproducer

Hi,

I'd like to report an internal compiler error (ICE) when using the SHAPE
intrinsic on assumed-rank arrays on GFortran 10.3.0 (Ubuntu
10.3.0-1ubuntu1~20.04). I have tested the code on godbolt.org for various
versions of GFortran. Version 11 and newer seem to correctly produce an error
message instead of producing an ICE, but all older versions reproduce the ICE.

A minimal reproducer is attached here.

Thanks,
Wileam Y. Phan

Reply via email to