From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28558 invoked by alias); 27 Jul 2013 14:55:16 -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 Received: (qmail 28472 invoked by uid 48); 27 Jul 2013 14:55:13 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58001] Make it possible to silence "Extension: Tab character in format" warning Date: Sat, 27 Jul 2013 14:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg01323.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58001 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- (In reply to Tobias Burnus from comment #0) > For indenting the source code, gfortran warns only with -std=f* or with > -Wtab. Please, check the archive. At one time gfortran would issue a warning if a tab was used in a nonconforming context. Too many people were upset about this, so the -W[no-]tab option, which has a convoluted history, was the compromise. > However, for format strings, it always warns - and with -std=f* it even > turns the warning into an error! (see io.c's next_char_not_space) > > Example: > > 1894 format( '123') > end > > (The tab is before '123'. A tab in the string itself is not warned for.) > > Maybe the best would be to disable this warning with -std=legacy - and refer > to -std=legacy in the -std=gnu warning? Tab is not and never has been a member of the Fortran character set. The above line of code is nonconforming. Gfortran, IMNSHO, should always issue an error, but I lost that battle years ago.