------- Comment #4 from domob at gcc dot gnu dot org  2008-12-18 10:07 -------
Subject: Bug 31822

Author: domob
Date: Thu Dec 18 10:05:54 2008
New Revision: 142808

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142808
Log:
2008-12-18  Daniel Kraft  <d...@domob.eu>

        PR fortran/31822
        * gfortran.h (gfc_check_same_strlen): Made public.
        * trans.h (gfc_trans_same_strlen_check): Made public.
        * check.c (gfc_check_same_strlen): Made public and adapted error
        message output to be useful not only for intrinsics.
        (gfc_check_merge): Adapt to gfc_check_same_strlen change.
        * expr.c (gfc_check_pointer_assign): Use gfc_check_same_strlen for
        string length compile-time check.
        * trans-expr.c (gfc_trans_pointer_assignment): Add runtime-check for
        equal string lengths using gfc_trans_same_strlen_check.
        * trans-intrinsic.c (gfc_trans_same_strlen_check): Renamed and made
        public from conv_same_strlen_check.
        (gfc_conv_intrinsic_merge): Adapted accordingly.

2008-12-18  Daniel Kraft  <d...@domob.eu>

        PR fortran/31822
        * gfortran.dg/char_pointer_assign_2.f90: Updated expected error message
        to be more detailed.
        * gfortran.dg/char_pointer_assign_4.f90: New test.
        * gfortran.dg/char_pointer_assign_5.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/char_pointer_assign_4.f90
    trunk/gcc/testsuite/gfortran.dg/char_pointer_assign_5.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/check.c
    trunk/gcc/fortran/expr.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/fortran/trans.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/char_pointer_assign_2.f90


-- 


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

Reply via email to