From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4683 invoked by alias); 26 Apr 2006 06:22:31 -0000 Received: (qmail 4670 invoked by alias); 26 Apr 2006 06:22:28 -0000 Date: Wed, 26 Apr 2006 06:22:00 -0000 Message-ID: <20060426062228.4669.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/27304] gfortran: Warn/abort when format in write does not fit passed arguments In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tobias dot burnus at physik dot fu-berlin dot de" 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 X-SW-Source: 2006-04/txt/msg02264.txt.bz2 List-Id: ------- Comment #4 from tobias dot burnus at physik dot fu-berlin dot de 2006-04-26 06:22 ------- Subject: Re: gfortran: Warn/abort when format in write does not fit passed arguments > I wonder if this is a case of illegal code. Intel errors on "infinite > format". Well, current g95, ifort 9/9.1, pgf95 6.0, pathscale and NAG f95 regard it as such and abort the execution or (NAG, today's g95) error on compilation. In the 2004-05 "Fortran 2003" draft (10.3) I find: "If an input/output list specifies at least one effective list item, at least one data edit descriptor shall exist in the format specification." For the compile-time I thus would really regard it as error. What the best behaviour for the run time is, is however debatable. (Abort [most compilers], ignore [g77, gfortran], ignore & warn [no compiler?].) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27304