]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Suppress invalid finalization of artificial variable [PR116388]
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 11 Nov 2024 09:01:11 +0000 (09:01 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 23 Nov 2024 16:20:28 +0000 (16:20 +0000)
commitc53a8c0410b4858d1a1b628b9d950eee47bc345c
tree49b69230c1e350ce44e7f37307c905136c96879a
parentd65a599795df85fd0974bdfc1597cc3013b670f9
Fortran: Suppress invalid finalization of artificial variable [PR116388]

2024-11-11  Tomas Trnka  <trnka@scm.com>
    Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/116388
* class.cc (finalize_component): Leading underscore in the name
of 'byte_stride' to suppress invalid finalization.

gcc/testsuite/
PR fortran/116388
* gfortran.dg/finalize_58.f90: New test.

(cherry picked from commit 42a2df0b7985b2a4732ba1c29726ac7aabd5eeae)
gcc/fortran/class.cc
gcc/testsuite/gfortran.dg/finalize_58.f90 [new file with mode: 0644]