This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]