https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043
--- Comment #20 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- (In reply to Mikael Morin from comment #19) > (In reply to Thomas Koenig from comment #15) > > One possibility would be to extend the patch Sandra posted at > > https://gcc.gnu.org/pipermail/fortran/2021-January/055563.html > > to scalarization. > > Probably nice to have, but it relies on casts which I see as fragile, and I > don’t trust the middle end to not mishandle corner cases here and there. Is it indeed fragile? And if we think up enough test cases to throw into the testsuite, I think we can at least make sure that it does not break quietly :-)