"Fei Liu" <fei.liu@[EMAIL PROTECTED]
> wrote in message
news:funrc4$uv7$1@[EMAIL PROTECTED]
> 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 re****ted.
>
> 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


|