The following program should give an error message as NAG f95 does:
Error: a.f90, line 4: Only one entity allowed with BIND(C,NAME=...)
gfortran currently happily accepts this.
module m
use iso_c_binding
implicit none
integer(c_int), bind(C, name="") :: a,b
end module m
--
Summary: Bind(C): Accepts multiple entites with same (empty)
binding name
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
OtherBugsDependingO 32630
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33215