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/31564] Error: Type/rank mismatch in argument



------- Comment #8 from pault at gcc dot gnu dot org  2007-09-05 13:34 -------
Subject: Bug 31564

Author: pault
Date: Wed Sep  5 13:34:25 2007
New Revision: 128130

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128130
Log:
2007-09-05  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/31564
        * primary.c (gfc_match_rvalue): Make expressions that refer
        to derived type parameters that have array references into
        variable expressions.  Remove references to use association
        from the symbol.

        PR fortran/33241
        * decl.c (add_init_expr_to_sym): Provide assumed character
        length parameters with the length of the initialization
        expression, if a constant, or that of the first element of
        an array.

2007-09-05  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/31564
        * gfortran.dg/derived_comp_array_ref_2.f90: New test.

        PR fortran/33241
        * gfortran.dg/char_length_10.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/char_length_10.f90
    trunk/gcc/testsuite/gfortran.dg/derived_comp_array_ref_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/fortran/primary.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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