[Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name
chrisonian at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 11 15:16:00 GMT 2012
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
More information about the Gcc-bugs
mailing list