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
On Mon, Aug 06, 2007 at 02:51:12PM -0600, Christopher D. Rickett wrote:
>
> >I made that change and regression tested it without any failures.
> >I also a type conversion to the EXPR_CONSTANT that forces the
> >conversion to a gfc_c_int_kind; otherwise, there may be problems
> >with -fdefault-integer-8. Yes, I know that -fdefault-integer-8
> >may have other problems because the mapping between types may
> >get screwed up.
> >
> >If you concur with the attached diff, I'll commit it shortly.
> >
>
> the patch looks good. it may be useful to put a comment on the call
> to gfc_convert_type () to say what the '2' means.
>
I changed the comment to
/* The expr needs to be compatible with a C int. If the
conversion fails, then the 2 causes an ICE. */
--
Steve