]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix ICE in sizeof(coarray) [PR77518]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Thu, 18 Jul 2024 12:53:31 +0000 (14:53 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Wed, 21 Aug 2024 06:38:56 +0000 (08:38 +0200)
commit515730fd65a03c5f92f9ab6438d023aee8cfbecf
tree3622924f93f90de13c7b081bfd8e0f26a5d7c478
parent34292a1ae89a13baf974ff2ecb21dcf89aab4617
Fortran: Fix ICE in sizeof(coarray) [PR77518]

Use se's class_container where present in sizeof().

PR fortran/77518

gcc/fortran/ChangeLog:

* trans-intrinsic.cc (gfc_conv_intrinsic_sizeof): Use
class_container of se when set.

gcc/testsuite/ChangeLog:

* gfortran.dg/coarray/sizeof_1.f90: New test.
gcc/fortran/trans-intrinsic.cc
gcc/testsuite/gfortran.dg/coarray/sizeof_1.f90 [new file with mode: 0644]