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

Reply via email to