aboutsummaryrefslogtreecommitdiff
path: root/gcc/coverage.h
diff options
context:
space:
mode:
authorAndre Vehreschild <vehre@gcc.gnu.org>2024-09-24 14:30:52 +0200
committerAndre Vehreschild <vehre@gcc.gnu.org>2024-10-17 08:56:59 +0200
commite32fff675c3bb040fa79854f6b0654c16bc38997 (patch)
tree32ab1e8ec2a6df108c91ba97aadc2889926caa67 /gcc/coverage.h
parent6293272e9a47e6e7debe4acd8195a2ae2d9ef0df (diff)
downloadgcc-e32fff675c3bb040fa79854f6b0654c16bc38997.zip
gcc-e32fff675c3bb040fa79854f6b0654c16bc38997.tar.gz
gcc-e32fff675c3bb040fa79854f6b0654c16bc38997.tar.bz2
Fix ICE with coarrays and submodules [PR80235]
Exposing a variable in a module and referencing it in a submodule made the compiler ICE, because the external variable was not sorted into the correct module. In fact the module name was not set where the variable got built. gcc/fortran/ChangeLog: PR fortran/80235 * trans-decl.cc (gfc_build_qualified_array): Make sure the array is associated to the correct module and being marked as extern. gcc/testsuite/ChangeLog: * gfortran.dg/coarray/add_sources/submodule_1_sub.f90: New test. * gfortran.dg/coarray/submodule_1.f90: New test.
Diffstat (limited to 'gcc/coverage.h')
0 files changed, 0 insertions, 0 deletions