This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33215] New: Bind(C): Accepts multiple entites with same (empty) binding name
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Aug 2007 09:20:51 -0000
- Subject: [Bug fortran/33215] New: Bind(C): Accepts multiple entites with same (empty) binding name
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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