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

            Bug ID: 123795
           Summary: [openmp] ice in install_var_field, at omp-low.cc:803
           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 63473
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63473&action=edit
Fortran 90 source code

The attached Fortran 90 code, from the Fujitsu compiler testsuite at

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

does this with recent gfortran:

fujitsu $ ~/gcc/results/bin/gfortran -c -w ./trunk/Fortran/0979/0979_0139.f90
fujitsu $ ~/gcc/results/bin/gfortran -c -w -fopenmp
./trunk/Fortran/0979/0979_0139.f90
during GIMPLE pass: omplower
./trunk/Fortran/0979/0979_0139.f90:10:27:

   10 | !$omp parallel copyin(a,t1)
      |                           ^
internal compiler error: in install_var_field, at omp-low.cc:803

Source code is

  gcc_assert ((mask & 1) == 0
          || !splay_tree_lookup (ctx->field_map, key));

Gcc 15.2.0 fails in a similar way, so the error is before then. 
Gcc trunk gfortran 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.20260122.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.20260122.ubsan --disable-bootstrap
--disable-doc --disable-multilib --with-build-config=bootstrap-ubsan
--with-pkgversion=8f9034c840c2ff90 --enable-checking=df,extra,fold,rtl,yes
--enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.1 20260122 (experimental) (8f9034c840c2ff90) 
fujitsu $

Reply via email to