From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10665 invoked by alias); 7 Jan 2006 22:17:45 -0000 Received: (qmail 10628 invoked by alias); 7 Jan 2006 22:17:42 -0000 Date: Sat, 07 Jan 2006 22:17:00 -0000 Message-ID: <20060107221742.10627.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/19292] [meta-bug] g77 features lacking in gfortran In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sgk at troutmask dot apl dot washington dot edu" 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-01/txt/msg00689.txt.bz2 List-Id: ------- Comment #10 from sgk at troutmask dot apl dot washington dot edu 2006-01-07 22:17 ------- Subject: Re: [meta-bug] g77 features lacking in gfortran On Sat, Jan 07, 2006 at 09:55:07PM -0000, kargl at gcc dot gnu dot org wrote: > > > Well, in looking at the code in 25705, I think the code is nonconforming via > 8.1.1.2 of the Fortran 95 standard. I don't have a copy of the Fortran 90 > standard, but I suspect that it will also show that the code is nonconforming. > I'll also note that Lahey's web base checking utility calls out the "goto 105" with a warning. NAG's Fortran 95 compiler issues an error similar to gfortran's message. The exact text of 8.1.1.2 is: Transfer of control to the interior of a block from outside the block is prohibited. Transfers within a block and transfers from the interior of a block to outside the block may occur. This statement is followed with NOTE 8.3 For example, if a statement inside the block has a statement label, a GO TO statement using that label is only allowed to appear in the same block. My advice would be to fix the code to make it portable. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19292