From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6465 invoked by alias); 10 Jul 2009 20:48:04 -0000 Received: (qmail 6336 invoked by uid 48); 10 Jul 2009 20:47:36 -0000 Date: Fri, 10 Jul 2009 20:48:00 -0000 Subject: [Bug fortran/40714] New: Fortran runtime error: Invalid argument X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "michael dot a dot richmond at nasa dot gov" 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: 2009-07/txt/msg00895.txt.bz2 This bug occurs on Sparc Linux and HP-PA Linux, but not i686 or x86_64. I believe it is generic to big endian processors. When I compile and run the program listed below I get the message: At line 5 of file z.f90 (unit = 32, file = 'fort.32') Fortran runtime error: Invalid argument PROGRAM test OPEN(UNIT=32,FILE="fort.32",STATUS="NEW",ACCESS="SEQUENTIAL",FORM="UNFORMATTED") READ(32,END=100) 100 CONTINUE WRITE (32) END PROGRAM test -- Summary: Fortran runtime error: Invalid argument Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: michael dot a dot richmond at nasa dot gov GCC build triplet: sparc-unknown-linux-gnu GCC host triplet: sparc-unknown-linux-gnu GCC target triplet: sparc-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40714