[Bug fortran/60355] [F08] constraint C519 for BIND attribute not enforced
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 2 12:21:00 GMT 2017
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
More information about the Gcc-bugs
mailing list