https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78990
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org --- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- I have a patch for this that I will post on the fortran list just as soon as it has finished regtesting. This turned out to be quite a challenging debugging job as often seems to be the case where the scalarizer is involved. Ultimately, I found that the testcase compiled when return_t1 was made a pointer and the resulting code revealed where the problems lay. This modified testcase now works as well but, of course, it leaks memory. Thanks for the report by the way. Paul