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