public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/40881]  New: warn for obsolescent features
@ 2009-07-27 19:50 janus at gcc dot gnu dot org
  2009-07-28  8:33 ` [Bug fortran/40881] " burnus at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: janus at gcc dot gnu dot org @ 2009-07-27 19:50 UTC (permalink / raw)
  To: gcc-bugs

gfortran should have a flag ("-Wobsolescent" or similar) to turn on warnings
about obsolescent features. These features are listed in chapter B.2 in the
Fortran standard. They are not forbidden by the standard, but are redundant and
can be replaced by newer and better features.

The standard also notes the possibility that they may be removed in the future.
Therefore gfortran should discourage their usage, just like the standard does.

Obsolescent features in Fortran 2003 are:

   (1) Arithmetic IF
   (2) Shared DO termination and termination
       on a statement other than END DO or CONTINUE
   (3) Alternate return
   (4) Computed GO TO statement
   (5) Statement functions
   (6) DATA statements amongst executable statements
   (7) Assumed length character functions
   (8) Fixed form source
   (9) CHARACTER* form of CHARACTER declaration


The -Wobsolescent flag does not have to go into -Wall (maybe -Wextra?)


-- 
           Summary: warn for obsolescent features
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-40881-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-08-14 10:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-27 19:50 [Bug fortran/40881] New: warn for obsolescent features janus at gcc dot gnu dot org
2009-07-28  8:33 ` [Bug fortran/40881] " burnus at gcc dot gnu dot org
2009-07-29 11:41 ` janus at gcc dot gnu dot org
2009-07-30  8:20 ` janus at gcc dot gnu dot org
2009-08-01 14:24 ` janus at gcc dot gnu dot org
2009-08-02 10:59 ` janus at gcc dot gnu dot org
2009-08-02 11:13 ` janus at gcc dot gnu dot org
2009-08-03  7:04 ` burnus at gcc dot gnu dot org
2010-05-07 19:46 ` dfranke at gcc dot gnu dot org
     [not found] <bug-40881-4@http.gcc.gnu.org/bugzilla/>
2012-08-14 10:26 ` burnus at gcc dot gnu.org
2012-08-14 10:30 ` burnus at gcc dot gnu.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).