------- Comment #4 from burnus at gcc dot gnu dot org 2008-11-26 13:50 ------- I think that patch is not enough (though useful!). I think one needs to add a gfc_simplify_sum to simplify.c and replace then the NULL by the function name in intrinsic.c for "sum". Possibly as well for the other transformational intrinsics which are allowed in initialization expressions.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38205