From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17432 invoked by alias); 13 Oct 2006 10:13:39 -0000 Received: (qmail 17395 invoked by uid 48); 13 Oct 2006 10:13:30 -0000 Date: Fri, 13 Oct 2006 10:13:00 -0000 Message-ID: <20061013101330.17394.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/29452] Keyword check for specifiers in WRITE, READ and OPEN/CLOSE 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-10/txt/msg01113.txt.bz2 List-Id: ------- Comment #1 from tobias dot burnus at physik dot fu-berlin dot de 2006-10-13 10:13 ------- Some tests show: open(13,file='foo',form='format') close(13,status='del') compiles and runs in gfortran. Expected: - A run-time error is shown. - A compile-time-error is shown (probably fixed by FX patch, not checked) * * * write(13,'(a)',advance='N') 'Hello:' This gives a compile-time error, whereas str = 'N' write(13,'(a)',advance=str) 'Hello:' gives not a run-time error. write(13,'(a)',advance='Not') 'Hello:' gives no compile-time error, but a run-time error. -- tobias dot burnus at physik dot fu-berlin dot de changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Do compile-time specifier |Keyword check for specifiers |checks for WRITE and READ |in WRITE, READ and | |OPEN/CLOSE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29452