re PR fortran/87172 (Spurious "Derived type 'c_funptr' at (1) has not been declared...
authorJanus Weil <janus@gcc.gnu.org>
Tue, 11 Sep 2018 17:44:04 +0000 (19:44 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Tue, 11 Sep 2018 17:44:04 +0000 (19:44 +0200)
commit0e4cb16f565fa292328c7e57689b7ca0f09e0625
treefbe9168c5ec760fc1fb05d45979400ef2ddc935b
parent2e3d2422343315fbe2c84c551eb7c8ef18021573
re PR fortran/87172 (Spurious "Derived type 'c_funptr' at (1) has not been declared" error after r263782)

fix PR 87172

2018-09-11  Janus Weil  <janus@gcc.gnu.org>

PR fortran/87172
* resolve.c (resolve_fl_derived): If a type has the 'use_assoc'
attribute, then it was declared in another module, so there should be
no error that it has not been declared.

2018-09-11  Janus Weil  <janus@gcc.gnu.org>

PR fortran/87172
* gfortran.dg/iso_c_binding_only_2.f90: New test case.

From-SVN: r264214
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/iso_c_binding_only_2.f90 [new file with mode: 0644]