https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55932

--- Comment #10 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sat Jan 17 18:08:38 2015
New Revision: 219801

URL: https://gcc.gnu.org/viewcvs?rev=219801&root=gcc&view=rev
Log:
2015-01-17  Andre Vehreschild  <ve...@gmx.de>

    PR fortran/60357
    * primary.c (build_actual_constructor): Prevent warning.
    * trans-expr.c (alloc_scalar_allocatable_for_subcomponent_
    assignment): New function encapsulates treatment of allocatable
    components.
    (gfc_trans_subcomponent_assign): Needed to distinguish between
    regular assignment and initilization.
    (gfc_trans_structure_assign): Same.
    (gfc_conv_structure): Same.

    PR fortran/61275
    * gfortran.h: deferred_parameter is not needed, because
    it artificial does the trick completely.
    * primary.c (build_actual_constructor): Same.
    (gfc_convert_to_structure_constructor): Same.
    * resolve.c (resolve_fl_derived0): Same.
    * trans-expr.c (gfc_conv_component_ref): Prevent treating
    allocatable deferred length char arrays here.
    (gfc_trans_subcomponent_assign): Same as above.
    * trans-types.c (gfc_sym_type): This is done in
    gfc_get_derived_type already.

2015-01-17  Andre Vehreschild  <ve...@gmx.de>

    PR fortran/60357
    * gfortran.dg/alloc_comp_assign_13.f08: New test.

    PR fortran/61275
    * gfortran.dg/alloc_comp_assign_14.f08: New test.

    PR fortran/55932
    * gfortran.dg/alloc_comp_initializer_4.f03: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/alloc_comp_assign_13.f08
    trunk/gcc/testsuite/gfortran.dg/alloc_comp_assign_14.f08
    trunk/gcc/testsuite/gfortran.dg/alloc_comp_initializer_4.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/primary.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-types.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to