On Mon, Mar 24, 2014 at 1:22 PM, Neil Carlson <[log in to unmask]> wrote:
> On Mon, 2014-03-24 at 12:56 -0600, Ondřej Čertík wrote:
>> Intel has an option to fix this, it's enough to use -fpscomp logical,
>> though it might slow things down.
>
> That option is included as part of the -standard-semantics option.
> For reasons of not wanting to break customer's existing code base
> (understandable), Intel has made -no-standard-semantics the default,
> but as the name implies that means the compiler does not comply
> with the 2003 standard. This recently came up on this list when
> it came to assignments to allocatable arrays.
Tim and Neil --- you are right, the -standard-semantics option fixes
it (on a recent Intel compiler).
So it looks like the conclusion is that one should simply be using
this option when mixing C and Fortran.
Ondrej
|