From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31654 invoked by alias); 27 Apr 2006 08:09:06 -0000 Received: (qmail 31627 invoked by alias); 27 Apr 2006 08:09:00 -0000 Date: Thu, 27 Apr 2006 08:09:00 -0000 Message-ID: <20060427080900.31626.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: "burnus at net-b 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/msg02380.txt.bz2 List-Id: ------- Comment #8 from burnus at net-b dot de 2006-04-27 08:09 ------- Subject: Re: gfortran: Warn/abort when format in write does not fit passed arguments (In reply to comment #7) > Tobias, I hope this is what you were looking for. I don't really think we need > a compile time check. That would be pretty involved to do and the error is > caught at runtime. I think it is ok (though Brooks wording is probably better). Still it would be nice if it would be detected during compile time. In my case it was burried in an if(something that rarely happens) write(*,'(''n'')') n which I wouldn't have found easily without the compile-time warning of the NAG compiler. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27304