Seen on this build: https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed/build/8476215/ using gcc-gfortran-15.0.0-0.2.fc42 from this scratch build by Jakub: https://koji.fedoraproject.org/koji/taskinfo?taskID=126495782 /usr/bin/f95 -I/builddir/build/BUILD/cp2k-2024.3-build/cp2k-2024.3/redhat-linux-build_serial/src/dbt -I/builddir/build/BUILD/cp2k-2024.3-build/cp2k-2024.3/src -I/builddir/build/BUILD/cp2k-2024.3-build/cp2k-2024.3/redhat-linux-build_serial/src -I/builddir/build/BUILD/cp2k-2024.3-build/cp2k-2024.3/src/base -I/builddir/build/BUILD/cp2k-2024.3-build/cp2k-2024.3/src/common -I/builddir/build/BUILD/cp2k-2024.3-build/cp2k-2024.3/src/dbcsrx -I/builddir/build/BUILD/cp2k-2024.3-build/cp2k-2024.3/src/motion -I/builddir/build/BUILD/cp2k-2024.3-build/cp2k-2024.3/src/dbm -I/builddir/build/BUILD/cp2k-2024.3-build/cp2k-2024.3/redhat-linux-build_serial/src/mod_files -I/usr/include -I/usr/include/flexiblas -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules -Jsrc/mod_files -fPIC -mtune=native -ffree-line-length-512 -ffree-form -std=f2008 -fimplicit-none -Werror=aliasing -Werror=ampersand -Werror=c-binding-type -Werror=conversion -Werror=intrinsic-shadow -Werror=intrinsics-std -Werror=line-truncation -Werror=tabs -Werror=target-lifetime -Werror=underflow -Werror=unused-but-set-variable -Werror=unused-variable -fallow-argument-mismatch -O3 -g -funroll-loops -fopenmp -fpreprocessed -c src/CMakeFiles/cp2k.dir/dbt/dbt_types.F-pp.f -o src/CMakeFiles/cp2k.dir/dbt/dbt_types.F.o /builddir/build/BUILD/cp2k-2024.3-build/cp2k-2024.3/src/dbt/dbt_types.F:1485:10: 1485 | SUBROUTINE dbt_get_info(tensor, nblks_total, & | 1~~~~~~~~~~~~~~~~~~~~~~ internal compiler error: in gfc_trans_structure_assign, at fortran/trans-expr.cc:9885 Please submit a full bug report, with preprocessed source (by using -freport-bug). See <http://bugzilla.redhat.com/bugzilla> for instructions. Possibly duplicate of bug 2336130. Reproducible: Didn't try
This should be fixed in gcc-15.0.0-0.4.fc42.