This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Namespace question
- From: Tobias Burnus <burnus at net-b dot de>
- To: "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Mon, 09 Oct 2006 21:00:47 +0200
- Subject: Namespace question
Hello,
the following program compiles with
- NAG 5.1: f95
- Intel 9.1.37: ifort -warn all -stand f95
- g95 0.91 Oct 6 2006: g95 -std=f95 -Wall -W -Wextra
but gfortran complains:
namelist /ops/ my
1
Error: PROCEDURE attribute conflicts with NAMELIST attribute in 'my' at (1)
Who is right? I'm inclined to claim that gfortran is wrong. Especially
since the error only occures when "namespace" is present.
---------------
program main
implicit none
contains
subroutine my
end subroutine my
subroutine bar
integer :: my
namelist /ops/ my
end subroutine bar
end program main
---------------
Tobias