This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/28167] ICE: in fold_binary, at fold-const.c:8239 (temporary character array?)



------- Comment #5 from pault at gcc dot gnu dot org  2006-07-04 20:16 -------
Subject: Bug 28167

Author: pault
Date: Tue Jul  4 20:15:52 2006
New Revision: 115182

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115182
Log:
2006-07-04  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/28174
        * trans-array.c (gfc_conv_expr_descriptor): When building temp,
        ensure that the substring reference uses a new charlen.
        * trans-expr.c (gfc_conv_aliased_arg): Add the formal intent to
        the argument list, lift the treatment of missing string lengths
        from the above and implement the use of the intent.
        (gfc_conv_function_call): Add the extra argument to the call to
        the above.

        PR fortran/28167
        * trans-array.c (get_array_ctor_var_strlen): Treat a constant
        substring reference.
        * array.c (gfc_resolve_character_array_constructor): Remove 
        static attribute and add the gfc_ prefix, make use of element
        charlens for the expression and pick up constant string lengths
        for expressions that are not themselves constant.
        * gfortran.h : resolve_character_array_constructor prototype
        added.
        * resolve.c (gfc_resolve_expr): Call resolve_character_array_
        constructor again after expanding the constructor, to ensure
        that the character length is passed to the expression.

2006-07-04  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/28174
        * gfortran.dg/actual_array_substr_2.f90: New test.

        PR fortran/28167
        * gfortran.dg/actual_array_constructor_2.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/actual_array_constructor_2.f90
    trunk/gcc/testsuite/gfortran.dg/actual_array_substr_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/array.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-expr.c


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]