This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Bug fortran/32732] [Bind C] Character scalars are passed as arrays
- From: Tobias Burnus <burnus at net-b dot de>
- To: Angelo Graziosi <Angelo dot Graziosi at roma1 dot infn dot it>
- Cc: fortran at gcc dot gnu dot org
- Date: Thu, 26 Jul 2007 11:56:44 +0200
- Subject: Re: [Bug fortran/32732] [Bind C] Character scalars are passed as arrays
- References: <Pine.OSF.4.58.0707261136270.19060@ax0rm1.roma1.infn.it>
Hi,
Angelo Graziosi wrote:
> I have tried to build the fortran test with gfc-20070722 on GNU/Linux
>
My mistake. Can you change integer(8) to integer(4) in the subroutine
printf - or better change it to "integer(c_size_t)". The return value of
sizeof() depends whether size_t is 32 or 64 bits long; on my x86-64 it
is 64bits (kind=8).
Tobias