This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/52512] Cannot match namelist object name


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52512

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de

--- Comment #2 from Harald Anlauf <anlauf at gmx dot de> 2012-03-06 21:43:47 UTC ---
(In reply to comment #1)
> At line 20 of file test.f90
> Fortran runtime error: Cannot match namelist object name 'alkalini',
> 
> (Also fails with GCC 4.1, 4.3 and 4.8.)
> 
> Cf. PR 51825 and PR 49791.

Playing around with the namelist, I find:

&namtoptrc
   getal = 7
   tracer(1:1) = 'DIC     ', .true.
   tracer(2:2) = 'Alkalini', .true.
   tracer(3:3) = 'O2      ', .true.
/

works.

&namtoptrc
   getal = 7
   tracer(1:1) = 'DIC     ', .true.
   tracer(2:2) = 'Alkalini', .true.
   tracer(3  ) = 'O2      ', .true.
/

works.

&namtoptrc
   getal = 7
   tracer(1:1) = 'DIC     ', .true.
   tracer(3  ) = 'O2      ', .true.
   tracer(2  ) = 'Alkalini', .true.
/

But many variations fail, producing different error messages.


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