Re: [Patch, fortran] PR63744 accept duplicate use-rename

2015-02-08 Thread Mikael Morin
Le 07/02/2015 14:40, Dominique Dhumieres a écrit : Dear Mikael, Even if use m, only: A = X use m, only: A = X is valid, it does not make sense to use it and it is probably a typo. Should not gfortran emit a warning, at least with -Wall? Yeah, why not? I think we have to defer it

Re: [Patch, fortran] PR63744 accept duplicate use-rename

2015-02-07 Thread Paul Richard Thomas
Dear Mikael, It looks good to me for trunk and the branches. Thanks for the patch Paul On 6 February 2015 at 21:31, Mikael Morin mikael.mo...@sfr.fr wrote: Hello, we currently reject programs of the form module m integer :: s end module m subroutine s use m, only: x = s, x = s

Re: [Patch, fortran] PR63744 accept duplicate use-rename

2015-02-07 Thread Dominique Dhumieres
Dear Mikael, Even if use m, only: A = X use m, only: A = X is valid, it does not make sense to use it and it is probably a typo. Should not gfortran emit a warning, at least with -Wall? Cheers, Dominique

[Patch, fortran] PR63744 accept duplicate use-rename

2015-02-06 Thread Mikael Morin
Hello, we currently reject programs of the form module m integer :: s end module m subroutine s use m, only: x = s, x = s end subroutine s with an error stating that S is the name of the current program unit. Interestingly, the duplicate rename is necessary to trigger it. There