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

            Bug ID: 123948
           Summary: ice during GIMPLE pass: esra
           Product: gcc
           Version: 16.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 63566
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63566&action=edit
Fortran 90 source code

For the attached Fortran 90 source code, from
the Fujitsu compiler test suite at

https://github.com/fujitsu/compiler-test-suite

recent gfortran trunk does this:

fujitsu $ ~/gcc/results/bin/gfortran -c -w trunk/Fortran/0509/0509_0154.f90
fujitsu $

but then:

fujitsu $ ~/gcc/results/bin/gfortran -c -w -O1 trunk/Fortran/0509/0509_0154.f90
trunk/Fortran/0509/0509_0154.f90:62:30:

   62 |                   end function
      |                              ^
Error: conversion of register to a different size in ‘view_convert_expr’
VIEW_CONVERT_EXPR<integer(kind=4)>(_4);

_17 = VIEW_CONVERT_EXPR<integer(kind=4)>(_4);
during GIMPLE pass: esra
trunk/Fortran/0509/0509_0154.f90:62:30: internal compiler error: verify_gimple
failed

Compiler is 

fujitsu $ ~/gcc/results/bin/gfortran -v
Using built-in specs.
COLLECT_GCC=/home/dcb42/gcc/results/bin/gfortran
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.20260131.ubsan/libexec/gcc/x86_64-pc-linux-gnu/16.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb42/gcc/results.20260131.ubsan --disable-bootstrap
--disable-doc --disable-multilib --with-build-config=bootstrap-ubsan
--with-pkgversion=c035985fd611dfb2 --enable-checking=df,extra,fold,rtl,yes
--enable-languages=c,c++,cobol,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.1 20260131 (experimental) (c035985fd611dfb2) 
fujitsu $ 

The problem seems to start sometime before gcc 15.2.0.

Reply via email to