[patch, fortran] Fix PR 60355, missing error for BIND(C) outside module scope

Thomas Koenig tkoenig@netcologne.de
Wed Aug 2 13:19:00 GMT 2017


Hello world,

the attached patch is a bit smaller than it looks, because most of
it is due to reformatting a large comment.  It is rather simple -
checking for an incorrectly placed BIND(C) variable was sometimes not
done because the test was mixed in with other tests where implicitly
typed variables were excluded.

Regression-tested. OK for trunk?

Regards

	Thomas

2017-08-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/60355
         * resolve.c (resolve_symbol): Adjust (and reformat)
         comment.  Perform check if a BIND(C) is declared
         at module level regardless of whether it is typed
         implicitly or not.

2017-08-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/60355
         * gfortran.dg (bind_c_usage_30): New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 2398 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170802/0c5f3a0b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind_c_usage_30.f90
Type: text/x-fortran
Size: 201 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170802/0c5f3a0b/attachment-0001.bin>


More information about the Fortran mailing list