https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103312
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #14 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Paul Thomas from comment #13)
> Fixed on 13- to 15-branches. Closing.
I have been working on the 2018 changes to IMPORT. With it partially
implemented, gfortran now produces the error:
21 | character(this%size()) :: string
| 1
Error: foo_size at (1) is host associated but does not appear in an IMPORT list
This triggered me to take a look at other brands....
flang_new:
/home/pault/gitsources/gcc/gcc/testsuite/gfortran.dg/pr103312.f90:21:17: error:
'foo_size' is not a procedure
character(this%size()) :: string
+ a cascaded error when the module is used
ifx:
/home/pault/gitsources/gcc/gcc/testsuite/gfortran.dg/pr103312.f90(21): error
#8607: The procedure interface for the type bound procedure is not yet
available. [SIZE]
character(this%size()) :: string
---------------------^
nagfor:
Doesn't complain about foo_size but complains about the number of arguments in
the typebound calls later on.
I will try to understand what the standard says about this use of this%size()
in the interface. nagfor seems to be broken.
Paul