https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77278
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Thomas Koenig from comment #5) > One thing we would also have to tackle is GFC_LOGICAL arguments. > C only has one bool type, which is (for gcc) equivalent to > logical(kind=1). We might just get by with > > typedef enum { _zero=1, _one=1 } GFC_LOGICAL_4; > > but what about arguments with other logical types? > We might actually need a C extension there, or disable > aliasing-based optimization. aliasing shouldn't be an issue here. The other logical kinds need to be mapped to short/int/long anyways for ABI reasons, no?