[Bug fortran/33039] Read NAMELIST: reads wrong namelist name
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33039
[Bug fortran/33039] Read NAMELIST: reads wrong namelist name
--- Comment #8 from jvdelisle at gcc dot gnu dot org 2007-08-10 12:43 --- Fixed on 4.3 -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33039
[Bug fortran/33039] Read NAMELIST: reads wrong namelist name
--- Comment #6 from jvdelisle at gcc dot gnu dot org 2007-08-10 12:36 --- Subject: Bug 33039 Author: jvdelisle Date: Fri Aug 10 12:36:01 2007 New Revision: 127332 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=127332 Log: 2007-08-10 Jerry DeLisle [EMAIL PROTECTED] PR libfortran/33039 * io/list_read.c (find_nml_name): Check for a space after a namelist name match. Modified: trunk/libgfortran/ChangeLog trunk/libgfortran/io/list_read.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33039
[Bug fortran/33039] Read NAMELIST: reads wrong namelist name
--- Comment #7 from jvdelisle at gcc dot gnu dot org 2007-08-10 12:40 --- Subject: Bug 33039 Author: jvdelisle Date: Fri Aug 10 12:39:46 2007 New Revision: 127333 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=127333 Log: 2007-08-10 Jerry DeLisle [EMAIL PROTECTED] PR libfortran/33039 * gfortran.dg/namelist_37.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/namelist_37.f90 Modified: trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33039
[Bug fortran/33039] Read NAMELIST: reads wrong namelist name
--- Comment #1 from burnus at gcc dot gnu dot org 2007-08-09 18:39 --- I think this is a duplicate of PR 33019. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33039
[Bug fortran/33039] Read NAMELIST: reads wrong namelist name
--- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-08-09 23:27 --- Regarding the test case: codechar='Improper lower case name',X=-3.0/ Fortran 95 Standard 10.9.1 states: If a processor is capable of representing letters in both upper and lower case, a group name or object name is without regard to case. So lower case is not improper. The standard also states that at least one space is required after the namelist name. This patch fixes it: Index: list_read.c === --- list_read.c (revision 127265) +++ list_read.c (working copy) @@ -2592,6 +2592,13 @@ find_nml_name: if (dtp-u.p.nml_read_error) goto find_nml_name; + + c = next_char (dtp); + if (c != ' ') +{ + unget_char (dtp, c); + goto find_nml_name; +} -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33039
[Bug fortran/33039] Read NAMELIST: reads wrong namelist name
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2007-08-09 23:37 --- *** Bug 33019 has been marked as a duplicate of this bug. *** -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added CC||jvdelisle at gcc dot gnu dot ||org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33039
[Bug fortran/33039] Read NAMELIST: reads wrong namelist name
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2007-08-09 23:38 --- This report is better than my own. :) -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2007-08-09 23:38:27 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33039
[Bug fortran/33039] Read NAMELIST: reads wrong namelist name
--- Comment #5 from patchapp at dberlin dot org 2007-08-10 05:40 --- Subject: Bug number PR33039 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00643.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33039