This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/34079] Bind(C): Character argument/return value problems



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]