This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/26136] 't' in namelist input is treated as logical TRUE
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Feb 2006 21:39:15 -0000
- Subject: [Bug libfortran/26136] 't' in namelist input is treated as logical TRUE
- References: <bug-26136-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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