This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/60355] [F08] constraint C519 for BIND attribute not enforced
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 Aug 2017 12:21:51 +0000
- Subject: [Bug fortran/60355] [F08] constraint C519 for BIND attribute not enforced
- Auto-submitted: auto-generated
- References: <bug-60355-4@http.gcc.gnu.org/bugzilla/>
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