[Bug fortran/29407] New: namelist: overriding the host association does not work (rejects valid code)
tobias dot burnus at physik dot fu-berlin dot de
gcc-bugzilla@gcc.gnu.org
Mon Oct 9 20:17:00 GMT 2006
---------------
program main
implicit none
contains
subroutine my
end subroutine my
subroutine bar
integer :: my
namelist /ops/ my
end subroutine bar
end program main
---------------
gives in gfortran the error message:
namelist /ops/ my
1
Error: PROCEDURE attribute conflicts with NAMELIST attribute in 'my' at (1)
With other compilers it works and Brooks Moses writes:
"Gfortran is wrong. The INTEGER declaration in BAR declares MY as a local
variable, thus overriding the host association of MY as the subroutine from the
main program. Thus, as far as NAMELIST is concerned, this is an ordinary
integer variable."
--
Summary: namelist: overriding the host association does not work
(rejects valid code)
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tobias dot burnus at physik dot fu-berlin dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29407
More information about the Gcc-bugs
mailing list