This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34079] Bind(C): Character argument/return value problems
- 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: 17 Nov 2007 08:08:18 -0000
- Subject: [Bug fortran/34079] Bind(C): Character argument/return value problems
- References: <bug-34079-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from burnus at gcc dot gnu dot org 2007-11-17 08:08 -------
Additional problems, spotted by FX:
subroutine foo(x) bind(c)
character(len=1) :: x
function bar(x) bind(c)
character(len=1) :: x, bar
These generates:
foo (x, _x)
bar (__result, .__result, x, _x)
Instead of
void foo(char *x)
and
char bar(char *x)
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |crickett at lanl dot gov
OtherBugsDependingO| |32630
nThis| |
Summary|Bind(C): Don't pass the |Bind(C): Character
|string length as argument |argument/return value
|(for STDCALL) |problems
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34079