public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35930]  New: -pedantic: Check for -std=f95/f2003/f2008
@ 2008-04-14  9:25 burnus at gcc dot gnu dot org
  2009-03-29  9:19 ` [Bug fortran/35930] " fxcoudert at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-04-14  9:25 UTC (permalink / raw)
  To: gcc-bugs

I understood -pedantic such that it gives warnings if a construct does not
match the Fortran standard. Currently, it seems to be partially used such but
also used to warn for non-Fortran-95 (!) constructs.


I think one should go through the pedantic sections in the source and check
whether they still make sense (e.g. give an error for valid F2003, cf. e.g.
PR35882); maybe we should also some more checks? (At least I often forget to
think of the -pedantic option.)


Additionally, one should change (a) "to Fortran 95" into "to the Fortran
standard" and (b) "Valid Fortran 95 programs" into "Programs which are valid
according to the Fortran standard" -- or something like that. In the manual wie
have:

       -pedantic
           Issue warnings for uses of extensions to Fortran 95.
[...]
           Valid Fortran 95 programs should compile properly with or
           without this option.  However, without this option, certain
           GNU extensions and traditional Fortran features are supported
           as well.  With this option, many of them are rejected.

           This should be used in conjunction with -std=f95,
           -std=f2003, or -std=f2008.


-- 
           Summary: -pedantic: Check for -std=f95/f2003/f2008
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: documentation
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

* [Bug fortran/35930] -pedantic: Check for -std=f95/f2003/f2008
  2008-04-14  9:25 [Bug fortran/35930] New: -pedantic: Check for -std=f95/f2003/f2008 burnus at gcc dot gnu dot org
@ 2009-03-29  9:19 ` fxcoudert at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-03-29  9:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-03-29 09:19:28
               date|                            |


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


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

* [Bug fortran/35930] -pedantic: Check for -std=f95/f2003/f2008
       [not found] <bug-35930-4@http.gcc.gnu.org/bugzilla/>
@ 2021-11-06  3:43 ` sandra at gcc dot gnu.org
  0 siblings, 0 replies; 3+ messages in thread
From: sandra at gcc dot gnu.org @ 2021-11-06  3:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35930

sandra at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandra at gcc dot gnu.org

--- Comment #2 from sandra at gcc dot gnu.org ---
The manual now documents -pedantic without tying it to Fortran 95, and it
includes a disclaimer 

  Some users try to use @option{-pedantic} to check programs for conformance.
  They soon find that it does not do quite what they want---it finds some
  nonstandard practices, but not all.
  However, improvements to GNU Fortran in this area are welcome.

I think the docs are OK, but is there more to do for this issue in terms of
fixing what -pedantic does?

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

end of thread, other threads:[~2021-11-06  3:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-14  9:25 [Bug fortran/35930] New: -pedantic: Check for -std=f95/f2003/f2008 burnus at gcc dot gnu dot org
2009-03-29  9:19 ` [Bug fortran/35930] " fxcoudert at gcc dot gnu dot org
     [not found] <bug-35930-4@http.gcc.gnu.org/bugzilla/>
2021-11-06  3:43 ` sandra 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).