[Patch, Fortran] PR30973, disallow to reuse a module name or to use the module name on an ONLY clause of USE
Tobias Burnus
burnus@net-b.de
Wed Feb 28 19:24:00 GMT 2007
I missed some part; gcc/testsuite/gfortran.dg/used_dummy_types_7.f90 had
to be updated as "atom" conflicts now in
SUBROUTINE dummy_atom_list_insert(this, atom)
USE atom, ONLY: dummy_atom
TYPE(dummy_atom), INTENT(in) :: atom
gfortran prints with the attached patch applied:
Error: Name 'atom' at (1) is an ambiguous reference to 'atom' from
current program unit
This is by the way in line with g95, NAG f95 and ifort.
Updated patch below. Full bootstrap and check-gfortraned on
x86_64-unknown-linux-gnu.
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use.diff
Type: text/x-patch
Size: 3127 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070228/00dba40c/attachment.bin>
More information about the Gcc-patches
mailing list