[patch, fortran] Fix PR 52668, bogus warning for only list
Thomas Koenig
tkoenig@netcologne.de
Sun Mar 25 09:28:00 GMT 2012
Hello world,
this fixes a 4.7/4.8 regression with a bogus warning for variables
which were excluded from being imported by "use, only" if they
were in a common block inside the module.
Regression-tested. OK for trunk and for 4.7 after a few days?
Thomas
2012-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/52668
* module.c: Only mark symbols as use_only if they have been
imported via an only list.
2012-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/52668
* gfortran.dg/use_only_6.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 909 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120325/880d7a71/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: use_only_6.f90
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120325/880d7a71/attachment.f90>
More information about the Fortran
mailing list