[Fixed, fortran] PR124161 [14/15/16 Regression] ICE in fold_convert_loc with submodule polymorphic TBP dispatch

Paul Richard Thomas <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <CAGkQGi+BJAso1LO4YaDdKRSy48J1h06Qsq_ugdjEjQtP+4=Jtw@mail.gmail.com>
Hello All,

This is now fixed on all three affected branches. The patch is utterly
trivial and so was pushed as 'obvious'.

Cheers

Paul

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.