From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7624 invoked by alias); 1 Dec 2003 05:18:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 7616 invoked by uid 48); 1 Dec 2003 05:18:22 -0000 Date: Mon, 01 Dec 2003 05:18:00 -0000 From: "dann at godzilla dot ics dot uci dot edu" To: gcc-bugs@gcc.gnu.org Message-ID: <20031201051818.13257.dann@godzilla.ics.uci.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/13257] New: [gfortran] Error instead of warning for missing comma in format string X-Bugzilla-Reason: CC X-SW-Source: 2003-12/txt/msg00083.txt.bz2 List-Id: With: gcc version 3.5-tree-ssa 20031130 (merged 20031123) test.f90 subroutine mysub dimension ibar(5) write (3,1001) ( ibar(m), m = 1, 5 ) 1001 format (/5x,' ',i4' '/ ) return end gfortran -c test.f90 -ffixed-form In file test.f90:5 1001 format (/5x,' ',i4' '/ ) 1 Error: Missing comma in format string at (1) In file test.f90:3 write (3,1001) ( ibar(m), m = 1, 5 ) 1 Error: FORMAT label 1001 at (1) not defined g77 gives a warning, but still compiles the code. Intel's compiler compiles the above code. Code like this appears in SPEC95 -- Summary: [gfortran] Error instead of warning for missing comma in format string Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dann at godzilla dot ics dot uci dot edu CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13257