|
Prev: compiler/linker flags to abort array assignment (non-standard) use during run time
Next: automatic creation of folders within a fortran program
From: Fei Liu on 23 Apr 2008 13:53 Michael Metcalf wrote: > "Fei Liu" <fei.liu(a)gmail.com> wrote in message news:funrc4$uv7$1(a)aioe.org... >> Hello Group, >> I am trying to come up with a list of compiler/linker options so that >> when the following code is run, a run time failure is generated. Or at >> least a compile time diagnosis is reported. >> >> The target compiler is Intel ifort. I would like to catch as many >> non-standard coding practice as possible at both compile time and run >> time. >> >> I currently use '-std -warn all -WB -Winline -traceback' but it does not >> catch the error in the following code. >> > In the general case your 'error' cannot be detected at either compile- or > run-time, other than by wearing your seat-belt: > > if(size(x) /= size(y)) print *, 'Ring the alarm bells!' > > Regards, > > Mike Metcalf > > Thanks, in general I am looking for a set of stricter compiler/linker options that will help diagnose potential problems. Fei |