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

            Bug ID: 129272
           Summary: ice in conv_intrinsic_move_alloc
           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 66385
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66385&action=edit
F90 source code

For the attached F90 source code from the llvm flang testsuite on github.com,
flang says this:

$ flang -c -w
/home/dcb42/llvm/trunk/flang/test/Lower/HLFIR/intrinsic-dynamically-optional.f90
$

But gfortran 16.2.0 says:

$ ~/gcc/results.16.2.0/bin/gfortran -c -w
/home/dcb42/llvm/trunk/flang/test/Lower/HLFIR/intrinsic-dynamically-optional.f90
/home/dcb42/llvm/trunk/flang/test/Lower/HLFIR/intrinsic-dynamically-optional.f90:103:33:

  103 |   call move_alloc(from, to, stat)
      |                                 1
internal compiler error: Segmentation fault
0x20475b7 internal_error
       
/home/dcb42/gcc/working.2/gcc/../../gcc-16.2.0/gcc/diagnostic-global-context.cc:787
0xce9939 ???
        /home/dcb42/gcc/working.2/gcc/../../gcc-16.2.0/gcc/toplev.cc:325
0x5be411 conv_intrinsic_move_alloc
       
/home/dcb42/gcc/working.2/gcc/../../gcc-16.2.0/gcc/fortran/trans-intrinsic.cc:13293
0x5be411 gfc_conv_intrinsic_subroutine
       
/home/dcb42/gcc/working.2/gcc/../../gcc-16.2.0/gcc/fortran/trans-intrinsic.cc:13511

gfortran recent trunk says something similar.

Reply via email to