From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31552 invoked by alias); 4 Aug 2007 16:26:17 -0000 Received: (qmail 31501 invoked by uid 48); 4 Aug 2007 16:26:04 -0000 Date: Sat, 04 Aug 2007 16:26:00 -0000 Message-ID: <20070804162604.31500.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/32987] GFortran FORMAT statement error In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl at gcc dot gnu dot org" 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: 2007-08/txt/msg00244.txt.bz2 ------- Comment #3 from kargl at gcc dot gnu dot org 2007-08-04 16:26 ------- Here's a patch that permits gfortran to accept your INVALID code. Your code should be fixed, and I will activity oppose application of this patch by others. Index: format.c =================================================================== --- format.c (revision 127165) +++ format.c (working copy) @@ -92,7 +92,7 @@ fmt->format_string_len--; c = toupper (*fmt->format_string++); } - while (c == ' ' && !literal); + while ((c == ' ' || c == '\t') && !literal); return c; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32987