[Bug fortran/25030] Character pointer can associated with not the same length character variable.
pault at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 29 06:08:00 GMT 2006
------- Comment #5 from pault at gcc dot gnu dot org 2006-01-29 06:08 -------
Subject: Bug 25030
Author: pault
Date: Sun Jan 29 06:08:07 2006
New Revision: 110365
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110365
Log:
2006-01-28 Paul Thomas <pault@gcc.gnu.org>
PR fortran/17911
* expr.c (gfc_check_assign, gfc_check_pointer_assign): Emit error if
the lvalue is a use associated procedure.
PR fortran/20895
PR fortran/25030
* expr.c (gfc_check_pointer_assign): Emit error if lvalue and rvalue
character lengths are not the same. Use gfc_dep_compare_expr for the
comparison.
* gfortran.h: Add prototype for gfc_dep_compare_expr.
* dependency.h: Remove prototype for gfc_dep_compare_expr.
2006-01-29 Paul Thomas <pault@gcc.gnu.org>
PR fortran/17911
* gfortran.dg/procedure_lvalue.f90: New test.
PR fortran/20895
PR fortran/25030
* gfortran.dg/char_pointer_assign_2.f90: New test.
* gfortran.dg/char_result_1.f90: Correct unequal charlen pointer
assignment to be consistent with standard.
* gfortran.dg/char_result_2.f90: The same.
* gfortran.dg/char_result_8.f90: The same.
Added:
trunk/gcc/testsuite/gfortran.dg/char_pointer_assign_2.f90
trunk/gcc/testsuite/gfortran.dg/procedure_lvalue.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/dependency.h
trunk/gcc/fortran/expr.c
trunk/gcc/fortran/gfortran.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/char_result_1.f90
trunk/gcc/testsuite/gfortran.dg/char_result_2.f90
trunk/gcc/testsuite/gfortran.dg/char_result_8.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25030
More information about the Gcc-bugs
mailing list