http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47023
--- Comment #9 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-09-29 15:49:32 UTC --- (In reply to comment #8) > This patch itself doesn't do anything wrong AFAICS, it rather seems to expose > an underlying bug: Either we need to set the 'is_c_interop' flag correctly or > loosen the checks in verify_c_interop. I think the latter. I think one can allow all intrinsic types. However, one needs to be careful with characters: kind=4 is not interoperable and, e.g., for dummies only len=1 is allowed (while via storage association, c_char_"string" is a valid argument for a "character(len=1,kind=c_char) :: dummy(*)"). Note, additionally, that setting attr.is_c_interop is kind of difficult for 0.0_c_int ...