https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120140
--- Comment #10 from Mikael Morin <mikael at gcc dot gnu.org> --- (In reply to Mikael Morin from comment #9) > > The following seems to fix it, and passes fortran tests *elem* and *dep*. > No, I don't think it's correct. I changed the test as follows: call sub (p(operm), q(iperm)) ! works (properly scalarized) print *, 'p(1:2)%i =', p(1:2)%i, ' (expect 44 43)' p(1:2) = p(operm) ! fails (not correctly scalarized) print *, 'p(1:2)%i =', p(1:2)%i, ' (expect 43 44)' and I get: p(1:2)%i = 44 43 (expect 44 43) p(1:2)%i = 85 86 (expect 43 44)
