[Bug fortran/124639] New Fortran 2018 IMPORT statement fails with derived types

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 31 19:48:48 GMT 2026


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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2026-03-31

--- Comment #1 from anlauf at gcc dot gnu.org ---
Confirmed.  Intel gets this right.

It works with 16-trunk if one adds the type to the import:

    import, only: myvar, mytype

I think this should not be necessary.


More information about the Gcc-bugs mailing list