https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124161
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Paul Thomas <[email protected]>: https://gcc.gnu.org/g:be9710b7e1448770fb2a6488333ad547ec918f79 commit r15-10988-gbe9710b7e1448770fb2a6488333ad547ec918f79 Author: Paul Thomas <[email protected]> Date: Thu Mar 19 11:37:40 2026 +0000 Fortran: Fix regression due to r16-669 [PR124161] 2026-03-19 Paul Thomas <[email protected]> gcc/fortran PR fortran/124161 * resolve.cc (resolve_symbol): Do not apply the default initializer if the symbol is used in a submodule. gcc/testsuite/ PR fortran/124161 * gfortran.dg/pr124161.f90: New test. (cherry picked from commit 240886adb8ac1a381a9dfd67f94755357c42c790)
