[Bug fortran/40646] ICE assigning array return value from type-bound procedure

pault at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jul 5 19:14:00 GMT 2009



------- Comment #5 from pault at gcc dot gnu dot org  2009-07-05 19:14 -------
Subject: Bug 40646

Author: pault
Date: Sun Jul  5 19:13:59 2009
New Revision: 149262

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149262
Log:
2009-07-05  Paul Thomas  <pault@gcc.gnu.org>
        and Tobias Burnus <burnus@gcc.gnu.org>

        PR fortran/40646
        * gfortran.h : Change the compcall member of the 'value' union
        in the gfc_expr structure so that its fields overlap with the
        'function' member.
        * resolve.c (resolve_compcall): Set the function.esym.
        * trans-expr.c (gfc_trans_arrayfunc_assign): Use
        is_proc_ptr_comp in the condition.
        * dependency.c (gfc_full_array_ref_p): Ensure that 'contiguous'
        retunrs a value if non-NULL.

2009-07-05  Paul Thomas  <pault@gcc.gnu.org>
        and Tobias Burnus <burnus@gcc.gnu.org>

        PR fortran/40646
        * gfortran.dg/func_assign_3.f90 : New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/func_assign_3.f90
Modified:
    trunk/gcc/fortran/dependency.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-expr.c


-- 


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



More information about the Gcc-bugs mailing list