This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR29464 - problem with duplicate USE, ONLY of procedure in INTERFACE
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Paul Thomas <paulthomas2 at wanadoo dot fr>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Fortran List <fortran at gcc dot gnu dot org>
- Date: Sat, 9 Dec 2006 09:54:27 -0800
- Subject: Re: [Patch, fortran] PR29464 - problem with duplicate USE, ONLY of procedure in INTERFACE
- References: <45685B81.3050008@wanadoo.fr>
On Sat, Nov 25, 2006 at 04:04:33PM +0100, Paul Thomas wrote:
> 2006-11-25 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/29464
> * module.c (load_generic_interfaces): Add symbols for all the
> local names of an interface. Share the interface amongst the
> symbols.
> * gfortran.h : Add generic_copy to symbol_attribute.
> * symbol.c (free_symbol): Only free interface if generic_copy
> is not set.
>
> 2006-11-25 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/29464
> * gfortran.dg/module_interface_2.f90: New test.
Oh my, yes! OK to commit.
I believe I ran into this bug or one that is
similar a long time ago with renaming USEd symbol.
module a
integer :: i = 4, j = 8
end module a
program b
use a, only : x => i, y => i ! Working version y => j
end program
The "y => i" would fail.
--
Steve