------- Comment #3 from jv244 at cam dot ac dot uk 2008-11-11 16:08 ------- just a note on the patch posted: http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00407.html
the fortran standard guarantees that E==TRANSFER(TRANSFER(E,D),E) if the physical representation of D and E is the same length. At the same time, it guarantees that a default logical and a default integer can be storage associated e.g. in a common block (talking about physical storage units). The wording seems somewhat imprecise, but I think it guarantees that the above transfer should work with integer and logical -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35366