From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26762 invoked by alias); 11 Jan 2012 15:16:16 -0000 Received: (qmail 26748 invoked by uid 22791); 11 Jan 2012 15:16:15 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_20,TW_GX,TW_LG X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Jan 2012 15:16:02 +0000 From: "chrisonian at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51825] New: Fortran runtime error: Cannot match namelist object name Date: Wed, 11 Jan 2012 15:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chrisonian at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-01/txt/msg01272.txt.bz2 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