diff options
author | Tobias Burnus <burnus@net-b.de> | 2007-06-24 18:19:11 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2007-06-24 18:19:11 +0200 |
commit | 2eae3dc776d21ca736df7805977f39af98513b31 (patch) | |
tree | feea8d3621fb013795c4e24773c0d395214dd5fc /gcc/fortran/module.c | |
parent | f0b3c58d8be622e7305c7d503a5d81b96b1db621 (diff) | |
download | gcc-2eae3dc776d21ca736df7805977f39af98513b31.zip gcc-2eae3dc776d21ca736df7805977f39af98513b31.tar.gz gcc-2eae3dc776d21ca736df7805977f39af98513b31.tar.bz2 |
re PR fortran/32460 (structure constructor not allowed if a USEd type has private components)
2007-06-24 Tobias Burnus <burnus@net-de>
PR fortran/32460
* interface.c (gfc_compare_derived_types): Add access check.
* symbol.c (gfc_find_component): Ditto.
(gfc_set_component_attr,gfc_get_component_attr) Copy access state.
* dump-parse-tree.c (gfc_show_components): Dump access state.
* gfortran.h (struct gfc_component): Add gfc_access.
* module.c (mio_component): Add access state.
* (gfc_match_structure_constructor): Check for private access state.
2007-06-24 Tobias Burnus <burnus@net-de>
PR fortran/32460
* gfortran.dg/private_type_6.f90: New.
From-SVN: r125984
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r-- | gcc/fortran/module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index 876255f..14d26d9 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -2065,6 +2065,7 @@ mio_component (gfc_component *c) mio_integer (&c->dimension); mio_integer (&c->pointer); mio_integer (&c->allocatable); + c->access = MIO_NAME (gfc_access) (c->access, access_types); mio_expr (&c->initializer); mio_rparen (); |