2017-02-20 Paul Thomas <pault@gcc.gnu.org>
commitd8cc986ad109d50d4f89949f8aebb8f4b57d3d3d
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Feb 2017 09:42:48 +0000 (20 09:42 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Feb 2017 09:42:48 +0000 (20 09:42 +0000)
treeb5e680edda864662c08e9de5a6a1487bc94cf1d6
parent02b6d4df70b4003a8c24955270019d82988b0ee5
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245595 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/submodule_25.f08 [new file with mode: 0644]