Dominique reported that the trunk patch breaks class_19.f90 when applied together with Andre's PR59678 fix. It appears to me that even without Andre's patch, the code generated is wrong, and I don't see any easy fix. Thus I'm withdrawing trunk's patch, and propose the backport patch also for trunk.
Mikael