------- Comment #9 from domob at gcc dot gnu dot org  2010-08-17 08:20 -------
Subject: Bug 38936

Author: domob
Date: Tue Aug 17 08:20:03 2010
New Revision: 163295

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163295
Log:
2010-08-17  Daniel Kraft  <d...@domob.eu>

        PR fortran/38936
        * gfortran.h (struct gfc_association_list): New member `where'.
        (gfc_is_associate_pointer) New method.
        * match.c (gfc_match_associate): Remember locus for each associate
        name matched and do not try to set variable flag.
        * parse.c (parse_associate): Use remembered locus for symbols.
        * primary.c (match_variable): Instead of variable-flag check for
        associate names set it for all such names used.
        * symbol.c (gfc_is_associate_pointer): New method.
        * resolve.c (resolve_block_construct): Don't generate assignments
        to give associate-names their values.
        (resolve_fl_var_and_proc): Allow associate-names to be deferred-shape.
        (resolve_symbol): Set some more attributes for associate variables,
        set variable flag here and check it and don't try to build an
        explicitely shaped array-spec for array associate variables.
        * trans-expr.c (gfc_conv_variable): Dereference in case of association
        to scalar variable.
        * trans-types.c (gfc_is_nodesc_array): Handle array association
symbols.
        (gfc_sym_type): Return pointer type for association to scalar vars.
        * trans-decl.c (gfc_get_symbol_decl): Defer association symbols.
        (trans_associate_var): New method.
        (gfc_trans_deferred_vars): Handle association symbols.

2010-08-17  Daniel Kraft  <d...@domob.eu>

        PR fortran/38936
        * gfortran.dg/associate_1.f03: Extended to test newly supported
        features like association to variables.
        * gfortran.dg/associate_3.f03: Removed check for illegal change
        of associate-name here...
        * gfortran.dg/associate_5.f03: ...and added it here.
        * gfortran.dg/associate_6.f03: No longer XFAIL'ed.
        * gfortran.dg/associate_7.f03: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/associate_7.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/match.c
    trunk/gcc/fortran/parse.c
    trunk/gcc/fortran/primary.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-types.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/associate_1.f03
    trunk/gcc/testsuite/gfortran.dg/associate_3.f03
    trunk/gcc/testsuite/gfortran.dg/associate_5.f03
    trunk/gcc/testsuite/gfortran.dg/associate_6.f03


-- 


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

Reply via email to