Namespace question

Tobias Burnus burnus@net-b.de
Mon Oct 9 19:00:00 GMT 2006


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



More information about the Fortran mailing list