[Bug fortran/55465] Name collision in C binding (calling C from Fortran)

anlauf at gmx dot de gcc-bugzilla@gcc.gnu.org
Mon Nov 26 20:20:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55465

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de

--- Comment #9 from Harald Anlauf <anlauf at gmx dot de> 2012-11-26 20:20:24 UTC ---
(In reply to comment #7)
> IMHO, this is valid code regardless of whether the binary argument types can be
> seen as equivalent. The standard is quite vague, but see my comment at bug
> 48858 comment 13. The standard defines that the binding label itself is a
> unique global entity, but does not specify that the interface definition is
> unique.

Well, then somebody should also complain to NAG.
The code in comment #6 fails to compile.

% nagfor -c -f2003 pr55465.f90
NAG Fortran Compiler Release 5.3.1(907)
Error: pr55465.f90: Duplicate binding label 'SQLSetEnvAttr' for external
procedure SQL_SET_ENV_ATTR_INT and external procedure SQL_SET_ENV_ATTR_PTR
[NAG Fortran Compiler error termination, 1 error]



More information about the Gcc-bugs mailing list