------- Comment #15 from jvdelisle at gcc dot gnu dot org 2009-11-17 04:29 ------- I have confirmed on trunk that removing that snippet clears the regression.
Looking at gfc_is_constant_expr we see a call to array.c (gfc_constant_ac) which does indeed modify the expr. So we have a bad side effect going on here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41807
