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

            Bug ID: 129171
           Summary: ice in gfc_trans_create_temp_array, at
                    fortran/trans-array.cc:1268
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 66347
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66347&action=edit
f90 source code

The attached code, from the llvm flang testsuite on github.com,
does this with recent flang:

$ flang -c -w
/home/dcb42/llvm/trunk/flang/test/Lower/HLFIR/assumed-rank-calls.f90
$

but gfortran 16.2.0 doesn't like it:

$ ~/gcc/results.16.2.0/bin/gfortran -c -w
/home/dcb42/llvm/trunk/flang/test/Lower/HLFIR/assumed-rank-calls.f90
/home/dcb42/llvm/trunk/flang/test/Lower/HLFIR/assumed-rank-calls.f90:72:30:

   72 |   call takes_assumed_rank_t(x)
      |                              1
internal compiler error: in gfc_trans_create_temp_array, at
fortran/trans-array.cc:1540

Recent trunk gfortran does something similar.

Reply via email to