SGI introduced a bug in 7.41 compiler?
From: Bil Kleb (Bil.Kleb_at_NASA.Gov)
Date: 09/21/04
- Next message: Rich Townsend: "Re: SGI introduced a bug in 7.41 compiler?"
- Previous message: beliavsky_at_aol.com: "Re: fortran reverse engeneering"
- Next in thread: Rich Townsend: "Re: SGI introduced a bug in 7.41 compiler?"
- Reply: Rich Townsend: "Re: SGI introduced a bug in 7.41 compiler?"
- Reply: Richard Edgar: "Re: SGI introduced a bug in 7.41 compiler?"
- Reply: Richard E Maine: "Re: SGI introduced a bug in 7.41 compiler?"
- Reply: Steve Siegfried: "Re: SGI introduced a bug in 7.41 compiler?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 21 Sep 2004 11:09:08 -0400
According to ifc, ifort, lf95, nagf95, nasf95, pgf90, and the
7.3.1.2m version of SGI's f90 compiler, the follow code is ok:
module cat
integer :: a = 1
end module cat
module puppy
contains
subroutine one
use cat, only : a_local=>a
write(*,*) 'a_local = ', a_local
end subroutine one
subroutine two
use cat, only : a_local=>a
write(*,*) 'a_local = ', a_local
end subroutine two
end module puppy
program main
use puppy, only : one, two
call one
call two
end program main
However, version 7.41 of SGI's compiler does not think so:
% f90 -version
MIPSpro Compilers: Version 7.41
% f90 local_rename.f90
module puppy
^
f90-855 f90: ERROR PUPPY, File = local_rename.f90, Line = 12, Column = 8
The compiler has detected errors in module "PUPPY". No module information file will be created for this module.
use cat, only : a_local=>a
^
f90-1015 f90: ERROR TWO, File = local_rename.f90, Line = 21, Column = 21
Local-name "A_LOCAL" must only be referenced once in a rename-list in this scope.
use puppy, only : one, two
^
f90-894 f90: ERROR MAIN, File = local_rename.f90, Line = 31, Column = 7
Module "PUPPY" has compile errors, therefore declarations obtained from the module via the USE statement may be incomplete.
f90: SGI MIPSpro Fortran 90 Version 7.42 (f14) Tue Sep 21, 2004 10:54:50
Bug?
-- Bil Kleb, Hampton, Virginia
- Next message: Rich Townsend: "Re: SGI introduced a bug in 7.41 compiler?"
- Previous message: beliavsky_at_aol.com: "Re: fortran reverse engeneering"
- Next in thread: Rich Townsend: "Re: SGI introduced a bug in 7.41 compiler?"
- Reply: Rich Townsend: "Re: SGI introduced a bug in 7.41 compiler?"
- Reply: Richard Edgar: "Re: SGI introduced a bug in 7.41 compiler?"
- Reply: Richard E Maine: "Re: SGI introduced a bug in 7.41 compiler?"
- Reply: Steve Siegfried: "Re: SGI introduced a bug in 7.41 compiler?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|