This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20895] All type parameters shall be identical in a POINTER assignment
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2006 06:08:13 -0000
- Subject: [Bug fortran/20895] All type parameters shall be identical in a POINTER assignment
- References: <bug-20895-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pault at gcc dot gnu dot org 2006-01-29 06:08 -------
Subject: Bug 20895
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=20895