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
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
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
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