From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16648 invoked by alias); 11 May 2016 22:47:39 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 16129 invoked by uid 89); 11 May 2016 22:47:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HImportance:normal, H*RU:sk:outboun, Hx-spam-relays-external:sk:outboun, H*r:sk:outboun X-HELO: outbound004.roc2.bluetie.com Received: from outbound004.roc2.bluetie.com (HELO outbound004.roc2.bluetie.com) (208.89.132.144) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 11 May 2016 22:47:37 +0000 Received: from web008.roc2.bluetie.com ([10.200.2.104]) by outbound004.roc2.bluetie.com with outbound004 id tAnQ1s0052Eellm01AnQD6; Wed, 11 May 2016 18:47:25 -0400 X-CMAE-OUT-Analysis: v=2.1 cv=Mtbc6gqe c=1 sm=1 tr=0 a=LHOAmBWhT41J5OIYqToUdA==:117 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=3JfLwpMmtZ8A:10 a=yrkiwgmsf1kA:10 a=1LOu8Qua0WMsTRm_txkA:9 a=QEXdDO2ut3YA:10 X-CMAE-OUT-Score: 0.00 X-BT-OutboundSpamChecked: true Received: from web008.roc2.bluetie.com (localhost.localdomain [127.0.0.1]) by web008.roc2.bluetie.com (Postfix) with ESMTP id D1C8710C0146 for ; Wed, 11 May 2016 18:47:24 -0400 (EDT) Message-ID: <20160511184724.6473@web008.roc2.bluetie.com> X-HTTP-Received: from Authenticated sender: daviddrum.excite [76.176.107.252] by web008.roc2.bluetie.com (BlueTie WebMail); Wed, 11 May 2016 18:47:24 -0400 Date: Wed, 11 May 2016 22:47:00 -0000 Cc: To: fortran@gcc.gnu.org From: "David Drum" Subject: Windows gfortran namelist input error Content-transfer-encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2016-05/txt/msg00028.txt.bz2 The following program works fine under Linux but fails under Windows. IMPLICIT REAL*8(A-H,O-Z) DIMENSION SENID(30) NAMELIST /FITH/ SENID DO I=3D1,30 SENID(I) =3D I ENDDO OPEN(UNIT=3D7,FILE=3D'TEST.OUT',FORM=3D'FORMATTED', * STATUS=3D'NEW',ACTION=3D'READWRITE') WRITE(7,NML=3DFITH) REWIND(7) READ(7,NML=3DFITH) END The error is: At line 11 of file xxx.f (unit =3D 7, file =3D 'TEST.OUT') Fortran runtime error: Cannot match namelist object name 27.0000000000 I am using GNU Fortran (GCC) 5.3.1 20160402 under Windows.=20 I believe the error is caused because the ^M line terminator (for DOS files= ) is interpreted as a value separator for namelist input.