This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/60355] [F08] constraint C519 for BIND attribute not enforced


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

--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Apparently only for implicitly-typed variables.

This works as expected:

program main
  integer, bind(c) :: i
end program main
$ gfortran a.f90 
a.f90:2:23:

   integer, bind(c) :: i
                       1
Error: Variable 'i' at (1) cannot be BIND(C) because it is neither a COMMON
block nor declared at the module level scope

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]