]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/33541 (gfortran wrongly imports renamed-use-associated symbol unrenamed)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 24 Nov 2007 10:17:26 +0000 (10:17 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 24 Nov 2007 10:17:26 +0000 (10:17 +0000)
commiteba55d501f7a2e4b95b7fedd3463424e403f2c54
tree21ec542f34f69afb88c52c5d30f8758eca1c37d1
parenta298680ca5bbf7254b79e310e683c33baffa18af
re PR fortran/33541 (gfortran wrongly imports renamed-use-associated symbol unrenamed)

2007-11-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/33541
* module.c (find_symtree_for_symbol): Move to new location.
(find_symbol): New function.
(load_generic_interfaces): Rework completely so that symtrees
have the local name and symbols have the use name.  Renamed
generic interfaces exclude the use of the interface without an
ONLY clause (11.3.2).
(read_module): Implement 11.3.2 in the same way as for generic
interfaces.

2007-11-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/33541
* gfortran.dg/nested_modules_1.f90: Change the reference to
FOO, forbidden by the standard, to a reference to W.
* gfortran.dg/use_only_1.f90: New test.

From-SVN: r130395
gcc/fortran/ChangeLog
gcc/fortran/module.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/nested_modules_1.f90
gcc/testsuite/gfortran.dg/use_only_1.f90 [new file with mode: 0644]