------- Comment #6 from dominiq at lps dot ens dot fr 2010-07-15 16:25 ------- > a) _gfortran_compare_string is now PURE, > http://gcc.gnu.org/viewcvs?view=revision&revision=162160
The test passes with the following patch: --- ../_clean/gcc/fortran/trans-decl.c 2010-07-15 18:05:19.000000000 +0200 +++ gcc/fortran/trans-decl.c 2010-07-15 18:07:53.000000000 +0200 @@ -2412,7 +2412,7 @@ gfc_build_intrinsic_function_decls (void get_identifier (PREFIX("compare_string")), "..R.R", integer_type_node, 4, gfc_charlen_type_node, pchar1_type_node, gfc_charlen_type_node, pchar1_type_node); - DECL_PURE_P (gfor_fndecl_compare_string) = 1; + /* DECL_PURE_P (gfor_fndecl_compare_string) = 1; */ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44945