https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116261
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2024-08-13
--- Comment #3 from anlauf at gcc dot gnu.org ---
Running the resulting executable under valgrind shows issues that were not
present in gcc-14: there are many reports of the type
==11462== Conditional jump or move depends on uninitialised value(s)
==11462== at 0x48386ED: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11462== by 0x428DF0: __final_MAIN___T.1 (sizeof_6.f90:5)
==11462== by 0x42AF7C: __final_MAIN___T2.5 (sizeof_6.f90:5)
==11462== by 0x426D1E: MAIN__ (sizeof_6.f90:281)
==11462== by 0x42D581: main (sizeof_6.f90:287)
==11462==
[...]
==11462== Use of uninitialised value of size 8
==11462== at 0x428FD3: __final_MAIN___T.1 (sizeof_6.f90:5)
==11462== by 0x42AF7C: __final_MAIN___T2.5 (sizeof_6.f90:5)
==11462== by 0x426D1E: MAIN__ (sizeof_6.f90:281)
==11462== by 0x42D581: main (sizeof_6.f90:287)
==11462==
[...]
Commenting lines 281..287 (six deallocates at the end of the main),
the issues seems to disappears.
A bookkeeping issue in the finalization?