public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name
@ 2012-01-11 15:16 chrisonian at gmail dot com
2012-01-11 15:27 ` [Bug fortran/51825] " burnus at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: chrisonian at gmail dot com @ 2012-01-11 15:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51825
Bug #: 51825
Summary: Fortran runtime error: Cannot match namelist object
name
Classification: Unclassified
Product: gcc
Version: 4.5.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: chrisonian@gmail.com
Created attachment 26301
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26301
simple program that produces namelist error
The attached program fails with:
Opening: error.in
At line 42 of file error.f90 (unit = 2, file = 'error.in')
Fortran runtime error: Cannot match namelist object name 3
The file 'error.in' is created by the program, with contents:
&error_params
beam_init%chars(1)='JUNK'
beam_init%grid(1)%n_x=3
beam_init%grid(1)%n_px=2
/
I've tries this with gfortran 4.5.3 on OSX (via MacPorts) and gfortran 4.5.1 on
Linux, with the same error. I believe this is different from other namelist
bugs posted. Here is my OSX information:
System information:
uname -a
Darwin mp158.lns.cornell.edu 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7
16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
Compilation:
gfortran -v -Wall -Wextra error.f90
Driving: gfortran -mmacosx-version-min=10.6.8 -v -Wall -Wextra error.f90
-lgfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin10/4.5.3/lto-wrapper
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.5.3/configure --prefix=/opt/local
--build=x86_64-apple-darwin10
--enable-languages=c,c++,objc,obj-c++,fortran,java
--libdir=/opt/local/lib/gcc45 --includedir=/opt/local/include/gcc45
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--datarootdir=/opt/local/share/gcc-4.5 --with-local-prefix=/opt/local
--with-system-zlib --disable-nls --program-suffix=-mp-4.5
--with-gxx-include-dir=/opt/local/include/gcc45/c++/ --with-gmp=/opt/local
--with-mpfr=/opt/local --with-mpc=/opt/local --enable-stage1-checking
--disable-multilib --enable-fully-dynamic-string
Thread model: posix
gcc version 4.5.3 (GCC)
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.8' '-v' '-Wall' '-Wextra'
'-shared-libgcc' '-mtune=generic'
/opt/local/libexec/gcc/x86_64-apple-darwin10/4.5.3/f951 error.f90 -fPIC -quiet
-dumpbase error.f90 -mmacosx-version-min=10.6.8 -mtune=generic -auxbase error
-Wall -Wextra -version -fintrinsic-modules-path
/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3/finclude -o
/var/folders/od/odOb++UsGpeQKdhyhIe81k+++TM/-Tmp-//cchWaIto.s
GNU Fortran (GCC) version 4.5.3 (x86_64-apple-darwin10)
compiled by GNU C version 4.5.3, GMP version 5.0.2, MPFR version 3.0.1-p3,
MPC version 0.9
warning: MPFR header version 3.0.1-p3 differs from library version 3.1.0-p3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran (GCC) version 4.5.3 (x86_64-apple-darwin10)
compiled by GNU C version 4.5.3, GMP version 5.0.2, MPFR version 3.0.1-p3,
MPC version 0.9
warning: MPFR header version 3.0.1-p3 differs from library version 3.1.0-p3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.8' '-v' '-Wall' '-Wextra'
'-shared-libgcc' '-mtune=generic'
as -arch x86_64 -force_cpusubtype_ALL -o
/var/folders/od/odOb++UsGpeQKdhyhIe81k+++TM/-Tmp-//ccZJDxIe.o
/var/folders/od/odOb++UsGpeQKdhyhIe81k+++TM/-Tmp-//cchWaIto.s
COMPILER_PATH=/opt/local/libexec/gcc/x86_64-apple-darwin10/4.5.3/:/opt/local/libexec/gcc/x86_64-apple-darwin10/4.5.3/:/opt/local/libexec/gcc/x86_64-apple-darwin10/:/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3/:/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/
LIBRARY_PATH=/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3/:/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.8' '-v' '-Wall' '-Wextra'
'-shared-libgcc' '-mtune=generic'
/opt/local/libexec/gcc/x86_64-apple-darwin10/4.5.3/collect2 -dynamic -arch
x86_64 -macosx_version_min 10.6.8 -weak_reference_mismatches non-weak -o a.out
-lcrt1.10.5.o -L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3
-L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3/../../..
/var/folders/od/odOb++UsGpeQKdhyhIe81k+++TM/-Tmp-//ccZJDxIe.o -lgfortran
-lgcc_s.10.5 -lgcc_ext.10.5 -lgcc -no_compact_unwind -lSystem
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.8' '-v' '-Wall' '-Wextra'
'-shared-libgcc' '-mtune=generic'
./a.out
Opening: error.in
At line 42 of file error.f90 (unit = 2, file = 'error.in')
Fortran runtime error: Cannot match namelist object name 3
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/51825] Fortran runtime error: Cannot match namelist object name
2012-01-11 15:16 [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name chrisonian at gmail dot com
@ 2012-01-11 15:27 ` burnus at gcc dot gnu.org
2012-01-12 0:12 ` jvdelisle at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-01-11 15:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51825
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
CC| |burnus at gcc dot gnu.org,
| |jvdelisle at gcc dot
| |gnu.org
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-01-11 15:27:13 UTC ---
Somehow a new NAMELIST issue was overdue ...
Also fails with and without -std=f95 (which disabled extended reads) and with
GCC 4.1 to 4.7. Thus, it is not a regression.
Using NAG 5.1, the result is:
Opening: error.in
JUNK
Closed: error.in
Jerry, can you have a look?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/51825] Fortran runtime error: Cannot match namelist object name
2012-01-11 15:16 [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name chrisonian at gmail dot com
2012-01-11 15:27 ` [Bug fortran/51825] " burnus at gcc dot gnu.org
@ 2012-01-12 0:12 ` jvdelisle at gcc dot gnu.org
2012-02-06 21:56 ` burnus at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2012-01-12 0:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51825
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-01-12
AssignedTo|unassigned at gcc dot |jvdelisle at gcc dot
|gnu.org |gnu.org
Ever Confirmed|0 |1
--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2012-01-12 00:11:05 UTC ---
yes, I will look. This has become a tradition. ;)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/51825] Fortran runtime error: Cannot match namelist object name
2012-01-11 15:16 [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name chrisonian at gmail dot com
2012-01-11 15:27 ` [Bug fortran/51825] " burnus at gcc dot gnu.org
2012-01-12 0:12 ` jvdelisle at gcc dot gnu.org
@ 2012-02-06 21:56 ` burnus at gcc dot gnu.org
2012-02-15 17:10 ` jvdelisle at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-02-06 21:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51825
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-02-06 21:55:33 UTC ---
Seems to be related to PR 49791, though the patch in PR 49791 comment 19 does
not help.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/51825] Fortran runtime error: Cannot match namelist object name
2012-01-11 15:16 [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name chrisonian at gmail dot com
` (2 preceding siblings ...)
2012-02-06 21:56 ` burnus at gcc dot gnu.org
@ 2012-02-15 17:10 ` jvdelisle at gcc dot gnu.org
2013-03-20 8:15 ` burnus at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2012-02-15 17:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51825
--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2012-02-15 17:08:51 UTC ---
I have been working on this one. The order of the lines within the namelist
file can cause the error to go away. I have also found that the read of the
character string acutally completes OK. Its an elusive bug, but I am still
working to isolate it. I o think we are leaving the chracer read in a wrong
state. I will see if I can map it out.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/51825] Fortran runtime error: Cannot match namelist object name
2012-01-11 15:16 [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name chrisonian at gmail dot com
` (3 preceding siblings ...)
2012-02-15 17:10 ` jvdelisle at gcc dot gnu.org
@ 2013-03-20 8:15 ` burnus at gcc dot gnu.org
2013-03-30 3:13 ` jvdelisle at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-03-20 8:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51825
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-03-20 08:15:17 UTC ---
Author: burnus
Date: Wed Mar 20 07:56:02 2013
New Revision: 196806
URL: http://gcc.gnu.org/viewcvs?rev=196806&root=gcc&view=rev
Log:
2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
PR libfortran/51825
* io/list_read.c (nml_read_obj): Don't end the component loop on
a nested derived type, but continue with the next loop iteration.
(nml_get_obj_data): Don't move the first_nl pointer further in
the list if a qualifier was found.
2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
PR libfortran/51825
* gcc/testsuite/gfortran.dg/namelist_77.f90: New.
* gcc/testsuite/gfortran.dg/namelist_78.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/namelist_77.f90
trunk/gcc/testsuite/gfortran.dg/namelist_78.f90
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/list_read.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/51825] Fortran runtime error: Cannot match namelist object name
2012-01-11 15:16 [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name chrisonian at gmail dot com
` (4 preceding siblings ...)
2013-03-20 8:15 ` burnus at gcc dot gnu.org
@ 2013-03-30 3:13 ` jvdelisle at gcc dot gnu.org
2013-04-29 0:55 ` jvdelisle at gcc dot gnu.org
2013-04-29 1:27 ` jvdelisle at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2013-03-30 3:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51825
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2013-03-30 03:13:27 UTC ---
Fixed on trunk, lets close this one and will carry forward on 56660.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/51825] Fortran runtime error: Cannot match namelist object name
2012-01-11 15:16 [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name chrisonian at gmail dot com
` (5 preceding siblings ...)
2013-03-30 3:13 ` jvdelisle at gcc dot gnu.org
@ 2013-04-29 0:55 ` jvdelisle at gcc dot gnu.org
2013-04-29 1:27 ` jvdelisle at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2013-04-29 0:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51825
--- Comment #7 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2013-04-29 00:55:08 UTC ---
Back port due to silent wrong code.
Author: jvdelisle
Date: Mon Apr 29 00:52:23 2013
New Revision: 198385
URL: http://gcc.gnu.org/viewcvs?rev=198385&root=gcc&view=rev
Log:
2013-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Backport from mainline:
2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
PR libfortran/51825
* io/list_read.c (nml_read_obj): Don't end the component loop on a
nested derived type, but continue with the next loop iteration.
(nml_get_obj_data): Don't move the first_nl pointer further in the
list if a qualifier was found.
PR fortran/51825
* gfortran.dg/namelist_77.f90: New test.
* gfortran.dg/namelist_78.f90: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/namelist_77.f90
branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/namelist_78.f90
Modified:
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/libgfortran/ChangeLog
branches/gcc-4_8-branch/libgfortran/io/list_read.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/51825] Fortran runtime error: Cannot match namelist object name
2012-01-11 15:16 [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name chrisonian at gmail dot com
` (6 preceding siblings ...)
2013-04-29 0:55 ` jvdelisle at gcc dot gnu.org
@ 2013-04-29 1:27 ` jvdelisle at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2013-04-29 1:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51825
--- Comment #8 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2013-04-29 01:27:05 UTC ---
Author: jvdelisle
Date: Mon Apr 29 01:25:43 2013
New Revision: 198386
URL: http://gcc.gnu.org/viewcvs?rev=198386&root=gcc&view=rev
Log:
2013-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Backport from mainline:
2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
PR libfortran/51825
* io/list_read.c (nml_read_obj): Don't end the component loop on a
nested derived type, but continue with the next loop iteration.
(nml_get_obj_data): Don't move the first_nl pointer further in the
list if a qualifier was found.
PR fortran/51825
* gfortran.dg/namelist_77.f90: New test.
* gfortran.dg/namelist_78.f90: New test.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/namelist_77.f90
branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/namelist_78.f90
Modified:
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/libgfortran/ChangeLog
branches/gcc-4_7-branch/libgfortran/io/list_read.c
Really closed now.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-04-29 1:27 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-11 15:16 [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name chrisonian at gmail dot com
2012-01-11 15:27 ` [Bug fortran/51825] " burnus at gcc dot gnu.org
2012-01-12 0:12 ` jvdelisle at gcc dot gnu.org
2012-02-06 21:56 ` burnus at gcc dot gnu.org
2012-02-15 17:10 ` jvdelisle at gcc dot gnu.org
2013-03-20 8:15 ` burnus at gcc dot gnu.org
2013-03-30 3:13 ` jvdelisle at gcc dot gnu.org
2013-04-29 0:55 ` jvdelisle at gcc dot gnu.org
2013-04-29 1:27 ` jvdelisle at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).