public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41198]  New: gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)"
@ 2009-08-31 14:26 michael dot a dot richmond at nasa dot gov
  2009-08-31 15:43 ` [Bug fortran/41198] " kargl at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2009-08-31 14:26 UTC (permalink / raw)
  To: gcc-bugs

The following program produces a warning message in gfortran 4.3 and 4.4, but
not 4.5. I believe it produced a warning message in early versions of 4.5.

PROGRAM test
IF(.TRUE.) THEN
  GOTO 50
50 ENDIF
END PROGRAM test


-- 
           Summary: gfortran 4.5 does not produce "Warning: Deleted feature:
                    GOTO at (1) jumps to END of construct at (2)"
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41198


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/41198] gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)"
  2009-08-31 14:26 [Bug fortran/41198] New: gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)" michael dot a dot richmond at nasa dot gov
@ 2009-08-31 15:43 ` kargl at gcc dot gnu dot org
  2009-08-31 18:01 ` michael dot a dot richmond at nasa dot gov
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2009-08-31 15:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from kargl at gcc dot gnu dot org  2009-08-31 15:43 -------
(In reply to comment #0)
> The following program produces a warning message in gfortran 4.3 and 4.4, but
> not 4.5. I believe it produced a warning message in early versions of 4.5.
> 
> PROGRAM test
> IF(.TRUE.) THEN
>   GOTO 50
> 50 ENDIF
> END PROGRAM test
> 

I believe that 4.3 and 4.4 had a bug.  Gfortran 4.5 is doing the right
thing.  The deleted feature is 

  (2) Branching to an END IF statement from outside its block.
      In Fortran 77, and for consistency also in Fortran 90, it was
      possible to branch to an END IF statement from outside the IF
      construct; this has been deleted.  A similar result can be
      achieved by branching to a CONTINUE statement that is immediately
      after the END IF statement.

Your GOTO 50 is inside the its block.  I also believe that there was
a long thread in fortran@gcc about this (non)feature.  I'll see if 
I can find it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41198


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/41198] gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)"
  2009-08-31 14:26 [Bug fortran/41198] New: gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)" michael dot a dot richmond at nasa dot gov
  2009-08-31 15:43 ` [Bug fortran/41198] " kargl at gcc dot gnu dot org
@ 2009-08-31 18:01 ` michael dot a dot richmond at nasa dot gov
  2009-08-31 18:42 ` mikael at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2009-08-31 18:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from michael dot a dot richmond at nasa dot gov  2009-08-31 18:00 -------
If I move "GOTO 50" outside of the block, gfortran 4.5 correctly gives the
message "Warning: Label at (1) is not in the same block as the GOTO statement
at (2)", but gfortran 4.3 and 4.4 give no message.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41198


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/41198] gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)"
  2009-08-31 14:26 [Bug fortran/41198] New: gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)" michael dot a dot richmond at nasa dot gov
  2009-08-31 15:43 ` [Bug fortran/41198] " kargl at gcc dot gnu dot org
  2009-08-31 18:01 ` michael dot a dot richmond at nasa dot gov
@ 2009-08-31 18:42 ` mikael at gcc dot gnu dot org
  2009-08-31 18:58 ` kargl at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mikael at gcc dot gnu dot org @ 2009-08-31 18:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mikael at gcc dot gnu dot org  2009-08-31 18:41 -------
(In reply to comment #1)
> I believe that 4.3 and 4.4 had a bug. 
bug #38507 probably


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41198


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/41198] gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)"
  2009-08-31 14:26 [Bug fortran/41198] New: gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)" michael dot a dot richmond at nasa dot gov
                   ` (2 preceding siblings ...)
  2009-08-31 18:42 ` mikael at gcc dot gnu dot org
@ 2009-08-31 18:58 ` kargl at gcc dot gnu dot org
  2009-12-04 23:38 ` dfranke at gcc dot gnu dot org
  2010-01-16 23:25 ` kargl at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2009-08-31 18:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from kargl at gcc dot gnu dot org  2009-08-31 18:58 -------
(In reply to comment #2)
> If I move "GOTO 50" outside of the block, gfortran 4.5 correctly gives the
> message "Warning: Label at (1) is not in the same block as the GOTO statement
> at (2)", but gfortran 4.3 and 4.4 give no message.
> 

As I said, 4.3 and 4.4 had/have a bug.  The PR that fixed this problem
is http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38507
The patch was committed to trunk on 2009-03-29.  Judging from the release
date of 4.4.0, it was deemed too close to release to do a backport.

A search of fortran@ finds the first analysis of the problem here:

http://gcc.gnu.org/ml/fortran/2008-12/msg00355.html

Here's my first attempt at fixing the problem before Tobias Schlueter
took over the PR.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41198


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/41198] gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)"
  2009-08-31 14:26 [Bug fortran/41198] New: gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)" michael dot a dot richmond at nasa dot gov
                   ` (3 preceding siblings ...)
  2009-08-31 18:58 ` kargl at gcc dot gnu dot org
@ 2009-12-04 23:38 ` dfranke at gcc dot gnu dot org
  2010-01-16 23:25 ` kargl at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2009-12-04 23:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dfranke at gcc dot gnu dot org  2009-12-04 23:37 -------
PR38507 is closed, no backport to 4.4 seems to be planned.
Shouldn't this PR be closed as INVALID?


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41198


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/41198] gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)"
  2009-08-31 14:26 [Bug fortran/41198] New: gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)" michael dot a dot richmond at nasa dot gov
                   ` (4 preceding siblings ...)
  2009-12-04 23:38 ` dfranke at gcc dot gnu dot org
@ 2010-01-16 23:25 ` kargl at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-01-16 23:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kargl at gcc dot gnu dot org  2010-01-16 23:25 -------
The (non?)issue was fixed on trunk in March 2009.  Since this
issues concerns only a warning and generating wrong code is
not possible, I'm closing this with WONTFIX under the 'too many
bugs too fix, too few hands to do the work' excuse.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41198


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-01-16 23:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-31 14:26 [Bug fortran/41198] New: gfortran 4.5 does not produce "Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)" michael dot a dot richmond at nasa dot gov
2009-08-31 15:43 ` [Bug fortran/41198] " kargl at gcc dot gnu dot org
2009-08-31 18:01 ` michael dot a dot richmond at nasa dot gov
2009-08-31 18:42 ` mikael at gcc dot gnu dot org
2009-08-31 18:58 ` kargl at gcc dot gnu dot org
2009-12-04 23:38 ` dfranke at gcc dot gnu dot org
2010-01-16 23:25 ` kargl at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).