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

            Bug ID: 125690
           Summary: ice in wide_int_to_tree_1, at tree.cc:1900
           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 64683
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64683&action=edit
f90 source code

The attached F90 code, from the Fujitsu testsuite on github.com,
does this with recent gfortran:

foundBugs $ /home/dcb42/gcc/results.20260607.ubsan/bin/gfortran -c -w
bug1218.f90
foundBugs $ /home/dcb42/gcc/results.20260609.ubsan/bin/gfortran -c -w
bug1218.f90bug1218.f90:29:14:

   29 | end subroutine
      |              1
internal compiler error: in wide_int_to_tree_1, at tree.cc:1900
0x2033bd7 internal_error
       
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:787
0x203de2b fancy_abort
        /home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostics/context.cc:1813
0x105ca55 wide_int_to_tree_1
        /home/dcb42/gcc/working/gcc/../../trunk/gcc/tree.cc:1900

For git hashes:

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

and

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

Reply via email to