------- Comment #13 from dominiq at lps dot ens dot fr 2008-12-10 15:17 ------- In comment #11, I wrote: > I have applied the proposed patches in comment #4 and #5 (one at a time!-), > but > they don't fix the wrong code (note also that gfortran with patch #4 pass the > test suite without regression).
Sorry, but I have applied the patches to the wrong tree (my reference one and not the working one). The patch in comment #4 needs to be updated by replacing 'gfc_add_modify_expr' with 'gfc_add_modify', see "2008-07-28 ... Merge from gimple-tuples-branch." in gcc/fortran/ChangeLog. The patch in comment #5 has a typo and should be: se.expr = gfc_evaluate_now (fold_convert (gfc_charlen_type_node, se.expr), &se.pre); I have applied the first patch on powerpc-apple-darwin9 and the second on i686-apple-darwin9. They both fix the problem and pass my tests. Regtesting started. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35937