Hi Paul, the patch seems to contain stuff that has already been pushed (gcc/testsuite/gfortran.dg/pr117768.f90, and the chunks in class.cc and resolve.cc). Can you please check?
Cheers, Harald Am 29.11.24 um 17:34 schrieb Paul Richard Thomas:
Hi All, This patch was originally pushed as r15-2739. Subsequently memory faults were found and so the patch was reverted. At the time, I could find where the problem lay. This morning I had another look and found it almost immediately :-) The fix is the 'gfc_resize_class_size_with_len' in the chunk '@@ -1595,14 +1629,51 @@ gfc_trans_create_temp_array '. Without it,, half as much memory as needed was being provided by the allocation and so accesses were occurring outside the allocated space. Valgrind now reports no errors. Regression tests with flying colours - OK for mainline? Paul