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

Steve Kargl <kargl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #2 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to anlauf from comment #1)
> I think the code is invalid.
> 
> NAG says:
> 
> % nagfor pr123375.f90
> NAG Fortran Compiler Release 7.2(Shin-Urayasu) Build 7203
> Error: pr123375.f90, line 7: C_INT has already been accessed by USE
> association from module ISO_C_BINDING, so cannot be now be imported
>        detected at IMPORT@C_INT
> [NAG Fortran Compiler pass 1 error termination, 1 error]

Looks like NAG is invoking  Fortran 2023, 8.8:

   C8101 (R870) Each import-name shall be the name of an
   entity in the host scoping unit.

In the code, the 'c_int' is USEd associated within the
interface.  Looks like gfortran is trying to be lenient
what it accepts.

Reply via email to