https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW
           Priority|P3                          |P4
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-10-22

--- Comment #1 from anlauf at gcc dot gnu.org ---
Confirmed up to current trunk.

As a workaround, you may try the result clause on function f, e.g.:

  function f() result(r)
    class(t), allocatable :: r
    r=tt()
  end

Reply via email to