From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15703 invoked by alias); 24 Feb 2011 14:36:01 -0000 Received: (qmail 15505 invoked by uid 22791); 24 Feb 2011 14:36:00 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Thu, 24 Feb 2011 14:35:56 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/47878] [4.6 Regression] 187.facerec miscompares X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 24 Feb 2011 14:55:00 -0000 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: 2011-02/txt/msg02773.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47878 --- Comment #12 from Tobias Burnus 2011-02-24 14:35:54 UTC --- (In reply to comment #11) > Test case for the actual issue: > > The crucial part seems to be to have (a) RECL= and (b) a line which is longer > than 80 characters. ... and reading more that than available. For integer, such values are regarded as 0. Consequently, ifort and gfortran-4.1 print: 63 67 68 72 78 90 99 114 133 146 160 174 186 198 190 193 196 197 198 198 199 198 200 199 200 197 198 200 200 201 198 199 200 201 201 201 203 206 203 204 206 0 While the trunk version prints: At line 6 of file bar.f90 (unit = 99, file = 'fort.99') Fortran runtime error: Bad value during integer read