[patch, fortran] more about namelists

Dominique Dhumieres dominiq@lps.ens.fr
Tue Jul 31 14:51:00 GMT 2007


Daniel,

I have applied the patch in

http://gcc.gnu.org/ml/gcc-patches/2007-07/msg02163.html

and gfortran.dg/namelist_33.f90 fails due to:

/opt/gcc/gcc-4.3-work/gcc/testsuite/gfortran.dg/namelist_33.f90:31.15:

  namelist /nml/ i
              1
Error: NAMELIST object 'i' was declared PRIVATE and cannot be member of PUBLIC namelist 'nml' at (1)
/opt/gcc/gcc-4.3-work/gcc/testsuite/gfortran.dg/namelist_33.f90:35.11:

  USE types
          1
Fatal Error: Can't open module file 'types.mod' for reading at (1): No such file or directory

As far as I can tell the unpatched test passed before the test. Is

  integer, private :: i
  namelist /nml/ i

allowed or is there a missing dg-error? or did I miss something?

Dominique

PS the regtest of gfortran passed without further glitch.



More information about the Fortran mailing list