This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/38507] Bogus Warning: Deleted feature: GOTO jumps to END of construct



------- Comment #6 from kargl at gcc dot gnu dot org  2008-12-15 18:58 -------
(In reply to comment #5)
> According to your readings, is the following valid?
>     DO 10 I=1,10
>     IF (.TRUE.) THEN
> 10  END IF
>    END
> 

See constraint C825, page 165 in F2003 and restriction R214
on page 11.

The above is an nonblock do construction and the label must
appear on an action-stmt.  end-if is not listed among the 
action statements, so I would conclude the above is invalid.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]