]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix ICE in gfc_create_module_variable [PR100273]
authorHarald Anlauf <anlauf@gmx.de>
Thu, 5 Sep 2024 19:30:25 +0000 (21:30 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 20 Sep 2024 19:29:21 +0000 (21:29 +0200)
commitcb25c5dd6b315dc216c7a5640dc89c5d74ffea34
tree29cbf0f80d40dda59be912a9cc51636d3678af68
parent645a11f70ee63232f8a3f54cf4415074454cc6c9
Fortran: fix ICE in gfc_create_module_variable [PR100273]

gcc/fortran/ChangeLog:

PR fortran/100273
* trans-decl.cc (gfc_create_module_variable): Handle module
variable also when it is needed for the result specification
of a contained function.

gcc/testsuite/ChangeLog:

PR fortran/100273
* gfortran.dg/pr100273.f90: New test.

(cherry picked from commit 1f462b5072a5e82c35921f7e3bdf3959c4a49dc9)
gcc/fortran/trans-decl.cc
gcc/testsuite/gfortran.dg/pr100273.f90 [new file with mode: 0644]