[Bug fortran/23905] New: misbehavior of function "gfc_copy_array_spec" in gcc/fortran/array.c

skyhover at hotmail dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 15 22:35:00 GMT 2005


The function is supposed to copy expressions from "src" to "dest", however, at  
line 486 and 487:  
  dest->lower[i] = gfc_copy_expr (dest->lower[i]);  
  dest->upper[i] = gfc_copy_expr (dest->upper[i]);  
"dest" are misused as the arguments in the parentheses. Both of them should be  
"src", I think. Also, such mistyping are still in the CVS. 
  
Thank you.

-- 
           Summary: misbehavior of function "gfc_copy_array_spec" in
                    gcc/fortran/array.c
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: skyhover at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: *-*-*


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



More information about the Gcc-bugs mailing list