public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43851]  New: Add _gfortran_error_stop_numeric
@ 2010-04-22 13:23 burnus at gcc dot gnu dot org
  2010-04-22 13:31 ` [Bug fortran/43851] " burnus at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-04-22 13:23 UTC (permalink / raw)
  To: gcc-bugs

There are two STOP statements in Fortran:
  STOP <constant default-integer-expr> or <constant string-expr>
  ERROR STOP <constant default-integer-expr> or <constant string-expr>

The first one is for normal stopping of the program, the second one for error
abort. This works in so far that ERROR STOP "string" returns a non-zero exit
status code and STOP "string" returns zero. (The numeric version returns the
number.)

However, the text output is different. For string one gets:
  STOP my string
  ERROR STOP my string
but for numeric output one just gets
  STOP 1
i.e. always "STOP" and never "ERROR STOP". The reason is that a
_gfortran_error_stop_numeric function is missing.


-- 
           Summary: Add _gfortran_error_stop_numeric
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          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=43851


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

end of thread, other threads:[~2010-07-20  1:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-22 13:23 [Bug fortran/43851] New: Add _gfortran_error_stop_numeric burnus at gcc dot gnu dot org
2010-04-22 13:31 ` [Bug fortran/43851] " burnus at gcc dot gnu dot org
2010-05-08 13:06 ` jvdelisle at gcc dot gnu dot org
2010-05-13 16:58 ` jvdelisle at gcc dot gnu dot org
2010-05-20  4:45 ` jvdelisle at gcc dot gnu dot org
2010-05-20  7:40 ` burnus at gcc dot gnu dot org
2010-05-20 13:33 ` jvdelisle at gcc dot gnu dot org
2010-05-20 19:40 ` jvdelisle at gcc dot gnu dot org
2010-05-23  0:01 ` jvdelisle at gcc dot gnu dot org
2010-06-06  6:10 ` jvdelisle at gcc dot gnu dot org
2010-07-19 13:48 ` burnus at gcc dot gnu dot org
2010-07-20  1:08 ` jvdelisle 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).