public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18540] New: Jumping into blocks gives error rather than warning
@ 2004-11-18 11:26 paul dot richard dot thomas at cea dot fr
  2004-11-18 12:31 ` [Bug fortran/18540] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 26+ messages in thread
From: paul dot richard dot thomas at cea dot fr @ 2004-11-18 11:26 UTC (permalink / raw)
  To: gcc-bugs

program lau_error
!
! most compilers seem to permit this excremental bit of coding
! some give warnings that this is bad stuff
! gfortran barfs on it
!
! In file lau_error.f90:12
!
! 10    continue
!  1
! In file lau_error.f90:9
!
!    if ( i > 1 ) goto 10
!                       2
!Error: Label at (1) is not in the same block as the GOTO statement at (2)
!                                        Paul Thomas 18/11/04
!
  integer              ::    i , N = 2
  do i = 1 , N
    print * , 'i =  ', i
    if ( i > 1 ) goto 10                        !!jump into the if block *sigh*
    if ( i > 0 ) then
       print * , 'first statement in if block'
 10    continue
       print * , 'continue within if block'
    end if
    print * , 'out of if block'
  end do
  stop
end program lau_error

-- 
           Summary: Jumping into blocks gives error rather than warning
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: paul dot richard dot thomas at cea dot fr
                CC: gcc-bugs at gcc dot gnu dot org,paulthomas2 at wanadoo
                    dot fr


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


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

end of thread, other threads:[~2006-01-28 20:59 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18540-9236@http.gcc.gnu.org/bugzilla/>
2006-01-07  0:16 ` [Bug fortran/18540] Jumping into blocks gives error rather than warning pinskia at gcc dot gnu dot org
2006-01-08 21:30 ` steven at gcc dot gnu dot org
2006-01-08 21:32 ` steven at gcc dot gnu dot org
2006-01-08 21:33 ` steven at gcc dot gnu dot org
2006-01-08 21:42 ` tobi at gcc dot gnu dot org
2006-01-08 21:45 ` steven at gcc dot gnu dot org
2006-01-08 21:54 ` steven at gcc dot gnu dot org
2006-01-08 22:16 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2006-01-08 22:23 ` steven at gcc dot gnu dot org
2006-01-08 22:53 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2006-01-09 16:46 ` tobi at gcc dot gnu dot org
2006-01-09 16:50 ` tobi at gcc dot gnu dot org
2006-01-09 18:35 ` steven at gcc dot gnu dot org
2006-01-09 18:56 ` tobi at gcc dot gnu dot org
2006-01-14 19:03 ` tobi at gcc dot gnu dot org
2006-01-18 20:54 ` tobi at gcc dot gnu dot org
2006-01-18 21:08 ` tobi at gcc dot gnu dot org
2006-01-25 22:34 ` tobi at gcc dot gnu dot org
2006-01-25 23:38 ` tobi at gcc dot gnu dot org
2006-01-26 10:15 ` tobi at gcc dot gnu dot org
2006-01-28 20:59 ` pinskia at gcc dot gnu dot org
2004-11-18 11:26 [Bug fortran/18540] New: " paul dot richard dot thomas at cea dot fr
2004-11-18 12:31 ` [Bug fortran/18540] " pinskia at gcc dot gnu dot org
2005-01-06 14:42 ` tobi at gcc dot gnu dot org
2005-01-06 18:17 ` paulthomas2 at wanadoo dot fr
2005-01-06 18:19 ` pinskia at gcc dot gnu dot org
2005-03-24 12:02 ` fxcoudert 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).