------- Comment #2 from burnus at gcc dot gnu dot org 2007-03-22 22:20 ------- There are actually two run-time tests possible:
a) Check only local variables (What to do about actual arguments to intent(in) dummy arguments? In the most cases this is wrong, however foo(read_argument=.false.,arg=uninitialized) is possible. Better don't check - or only optionally.) This seems to be done by ifort's -check uninit. b) Checking all calls, i.e. by passing additional information. This is done by NAG f95's -C=undefined. This is more comprehensive, but makes procedures compiled -C=undefined incompatible to those compiled without. Ideally, gfortran should offer both options. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27589