[Bug fortran/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jul 15 14:38:00 GMT 2010



------- Comment #1 from burnus at gcc dot gnu dot org  2010-07-15 14:37 -------
> 0x000adddc in __gfortran_compare_string (len1=4, s1=0x0, len2=4, s2=0x1f40

"s1" should not be NULL but the value of "c%a". The question is why does this
fail now. Recently added were: PURE and the "fn spec" of "..R.R". However, that
looks ok. (With Rev. 162202 it works on x86-64 -m64.)


trans-decl.c has:

  /* String functions.  */
  gfor_fndecl_compare_string = gfc_build_library_function_decl_with_spec (
        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;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44945



More information about the Gcc-bugs mailing list