------- Comment #9 from fxcoudert at gcc dot gnu dot org 2007-04-05 11:17 ------- The segfault happens because we come into gfc_int2int to convert the value from TRANSFER into the integer(kind=1). But TRANSFER isn't simplified at this point, although it should have been, which leads to referencing memory that is not defined. This will be fixed when the gfc_simplify_transfer() function is implemented (Paul T. and Tobias B. are working on it).
Admittedly, we should have an assert() in place to prevent this kind of segfault (and have a clean ICE instead). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31427