Aleksandar Donev wrote:
[log in to unmask]">
Hi,
Does anyone know if there is a routine in NAG's compiler to abort execution
and produce a stack traceback? When compiled with -gline, I can do a
READ(-1,*) or some other trick like that and get a runtime error with a nice
traceback (line numbers and everything). I thought the ABORT from the POSIX
interface would do this, but it does not. Similar question for Intel and
Lahey.
Thanks,
Aleksandar
  

    I don't know about NAG, but I compiled with Lahey LF95 5.6 and Compaq Visual Fortran (CVF) 6.6.C.  Both under Windows.  The results are the same for both compilers.

* Both compilers offer the option for the user to generate a traceback in case of run-time errors.  With LF95, it is -trace; with CVF, it is /traceback.

* If you use the ABORT subroutine, you will not get a traceback. 

* If you intentionally cause a run-time error using some other method, the traceback will occur if the program was compiled with traceback requested.

--
Sincerely,
Craig T. Dedo
17130 W. Burleigh Place             E-mail:       [log in to unmask]
Brookfield, WI   53005-2759         Voice Phone:  (262) 783-5869
USA                                 Fax Phone:    (262) 783-5928

"They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety."  -- Benjamin Franklin
    (1759)