This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR29464 - problem with duplicate USE, ONLY of procedure in INTERFACE


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]