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 libfortran/26136] 't' in namelist input is treated as logical TRUE



------- Comment #3 from hjl at lucon dot org  2006-02-06 21:39 -------
The problem is we have

   logical, dimension(max_domains) :: non_hydrostatic
   integer, dimension(max_domains) :: time_step_sound
   namelist /dynamics/ non_hydrostatic
   namelist /dynamics/ time_step_sound

The input is

 &dynamics
 non_hydrostatic                     = .true.,
 time_step_sound                     = 4,      4,      4,
 /

read_logical () thinks the first 't' in time_step_sound is logical TRUE.


-- 

hjl at lucon dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|arrays in namelist with not |'t' in namelist input is
                   |finished input does not work|treated as logical TRUE
                   |correctly                   |


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


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