diff options
author | Andre Vehreschild <vehre@gmx.de> | 2015-01-17 19:08:38 +0100 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2015-01-17 18:08:38 +0000 |
commit | 9b5485174b808986614d6d1d1f0ec319831c9ec4 (patch) | |
tree | 06544cb03384b136934c7ff6d2f7abc201fc2c56 /gcc/fortran/gfortran.h | |
parent | 33c2207d3fda2956ac036f306fc8bfc58b635da0 (diff) | |
download | gcc-9b5485174b808986614d6d1d1f0ec319831c9ec4.zip gcc-9b5485174b808986614d6d1d1f0ec319831c9ec4.tar.gz gcc-9b5485174b808986614d6d1d1f0ec319831c9ec4.tar.bz2 |
re PR fortran/60357 ([F08] structure constructor with unspecified values for allocatable components)
2015-01-17 Andre Vehreschild <vehre@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 <vehre@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.
From-SVN: r219801
Diffstat (limited to 'gcc/fortran/gfortran.h')
-rw-r--r-- | gcc/fortran/gfortran.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/fortran/gfortran.h b/gcc/fortran/gfortran.h index 4e20895..5049c2a 100644 --- a/gcc/fortran/gfortran.h +++ b/gcc/fortran/gfortran.h @@ -856,9 +856,6 @@ typedef struct /* Attributes set by compiler extensions (!GCC$ ATTRIBUTES). */ unsigned ext_attr:EXT_ATTR_NUM; - /* Is a parameter associated with a deferred type component. */ - unsigned deferred_parameter:1; - /* The namespace where the attribute has been set. */ struct gfc_namespace *volatile_ns, *asynchronous_ns; } |