[Patch, Fortran] PR55758 - Non-C_Bool handling with BIND(C)
Steve Kargl
sgk@troutmask.apl.washington.edu
Sun Jan 6 18:31:00 GMT 2013
On Sun, Jan 06, 2013 at 05:52:23PM +0100, Tobias Burnus wrote:
>
> PS: If there is consensus that this patch is a bad idea, I propose to
> reject non-C_BOOL LOGICALs unconditionally as dummy argument or result
> variable of BIND(C) procedures. Or do you have a better suggestion?
>
IMHO, I think that this is the correct fix. If a programmer
wants the non-C_BOOL behavior, at least make the user explicitly
ask for it with an option, e.g., -fenable-non-c_bool-logicals.
OTOH, I have so little time to help with gfortran development,
you can ignore my opinion and I won't be offended.
--
Steve
More information about the Fortran
mailing list