public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/27589]  New: Add compiler flag to check for uninitalized values at runtime
@ 2006-05-13 14:12 tobias dot burnus at physik dot fu-berlin dot de
  2006-05-13 14:17 ` [Bug fortran/27589] " tobias dot burnus at physik dot fu-berlin dot de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tobias dot burnus at physik dot fu-berlin dot de @ 2006-05-13 14:12 UTC (permalink / raw)
  To: gcc-bugs

Currently, gfortran does not seem to have any option to catch uninitialized
variables at run time.

Example (from http://www.polyhedron.com/pb05/linux/diagnose.html):
--------<UNIN1>------------
        program uin1
        integer x,y,a,b
        x=y
        a=b
        print *,x,a
        b=1
        end
---------------------------

Other compilers have an options to catch those, e.g.:

ifort64-9.1 -C -check all -warn all,nodec,interfaces -gen_interfaces -traceback
-fpe0 -fpstkchk UIN1.F
./a.out
forrtl: severe (193): Run-Time Check Failure. The variable 'uin1_$Y' is being
used without being defined

NAG: f95 -C=all -C=undefined -info -g -gline UIN1.F
./a.out
Reference to undefined variable Y
Program terminated by fatal error
In UIN1, line 5 of UIN1.F


-- 
           Summary: Add compiler flag to check for uninitalized values at
                    runtime
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tobias dot burnus at physik dot fu-berlin dot de


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


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

end of thread, other threads:[~2021-04-09 17:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-27589-4@http.gcc.gnu.org/bugzilla/>
2021-04-09 17:16 ` [Bug fortran/27589] Add compiler flag to check for uninitalized values at runtime msebor at gcc dot gnu.org
2006-05-13 14:12 [Bug fortran/27589] New: " tobias dot burnus at physik dot fu-berlin dot de
2006-05-13 14:17 ` [Bug fortran/27589] " tobias dot burnus at physik dot fu-berlin dot de
2007-03-22 22:20 ` burnus at gcc dot gnu dot org
2007-04-18  6:15 ` fxcoudert at gcc dot gnu dot org
2007-06-21 16:58 ` burnus at gcc dot gnu dot org
2007-06-22 13:15 ` burnus 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).