diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2017-02-20 09:42:48 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2017-02-20 09:42:48 +0000 |
commit | 1ca6a74f8900cd8e18a5603eaea2c16f4f0d1e36 (patch) | |
tree | b5e680edda864662c08e9de5a6a1487bc94cf1d6 /gcc/fortran/decl.c | |
parent | 8f712b76904c9e495d16817fa93f8edde4c1f0cd (diff) | |
download | gcc-1ca6a74f8900cd8e18a5603eaea2c16f4f0d1e36.zip gcc-1ca6a74f8900cd8e18a5603eaea2c16f4f0d1e36.tar.gz gcc-1ca6a74f8900cd8e18a5603eaea2c16f4f0d1e36.tar.bz2 |
re PR fortran/79434 ([submodules] separate module procedure breaks encapsulation)
2017-02-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/79434
* parse.c (check_component, parse_union): Whitespace.
(set_syms_host_assoc): For a derived type, check if the module
in which it was declared is one of the submodule ancestors. If
it is, make the components public. Otherwise, reset attribute
'host_assoc' and set 'use-assoc' so that encapsulation is
preserved.
2017-02-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/79434
* gfortran.dg/submodule_25.f08 : New test.
From-SVN: r245595
Diffstat (limited to 'gcc/fortran/decl.c')
0 files changed, 0 insertions, 0 deletions