]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/primary.c
re PR fortran/32460 (structure constructor not allowed if a USEd type has private...
authorTobias Burnus <burnus@net-b.de>
Sun, 24 Jun 2007 16:19:11 +0000 (18:19 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Sun, 24 Jun 2007 16:19:11 +0000 (18:19 +0200)
commit2eae3dc776d21ca736df7805977f39af98513b31
treefeea8d3621fb013795c4e24773c0d395214dd5fc
parentf0b3c58d8be622e7305c7d503a5d81b96b1db621
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
gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c
gcc/fortran/gfortran.h
gcc/fortran/interface.c
gcc/fortran/module.c
gcc/fortran/primary.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/private_type_6.f90 [new file with mode: 0644]