[Patch, Fortran] PR55758 - Non-C_Bool handling with BIND(C)

Mikael Morin mikael.morin@sfr.fr
Wed Jan 9 17:23:00 GMT 2013


Le 09/01/2013 17:22, Tobias Burnus a écrit :
> However, I still believe that we should do something -std=gnu.
Hm, reject?

One can't declare a procedure with one type on one side, and another 
different type on the other side and expect things to work.
We don't support passing integer as real, or real as integer, we 
shouldn't support integer as logical.

For what it's worth, I think there should be no logical kind.
To store integer or real values, it makes sense to leave the choice to 
the user depending on the range of the data, but to store only two 
different possible values, really it's a target-dependent choice that 
should be left to the compiler.

Anyway, I'm in favor of rejecting by default.

Mikael



More information about the Fortran mailing list