Re: eqv vs ==



dpb wrote:
| Arjen Markus wrote:
|| On 22 nov, 15:48, Arjen Markus <arjen.mar...@xxxxxxxxxx> wrote:
||| On 22 nov, 15:28, "Jugoslav Dujic" <jdu...@xxxxxxxxx> wrote:
|| I checked Intel Fortran version 9.0 under Linux with this
|| program:
||
|| program test_ifs
||
|| integer, dimension(10) :: int_array
||
|| int_array = 1
||
|| if ( abs(int_array(1).gt.0) ) then
|| write(*,*) 'abs - true!'
|| endif
||
|| if ( int_array(2) ) then
|| write(*,*) 'int - true!'
|| endif
||
|| end program
||
|| Intel Fortran happily compiles it and the result is:
||
|| abs - true!
|| int - true!
||
|| g95 refuses to compile it, as does gfortran.
||
|| With the option -warn stderrors ifort also complains.
|
|
| W/ the option /warn:[f95|f90] so does CVF...

Yes, but VF has also been bitched at concerning the granularity of their
warning messages: you can get either none or all, and there's no extension
akin to #pragma warning(disable:).

In my case, the code heavily interfaces with C, and is loaded with conditional
compilation directives, cray pointers, and various !DEC$ATTRIBUTES. If I switch
/warn:f95 on, I'd get a ~1000 warnings about those (thanks, I know), likely
hiding the ones I *do* care about.

--
Jugoslav
___________
www.xeffort.com

Please reply to the newsgroup.
You can find my real e-mail on my home page above.
.



Relevant Pages

  • Re: eqv vs ==
    ... || I checked Intel Fortran version 9.0 under Linux with this ... || Intel Fortran happily compiles it and the result is: ... warning messages: you can get either none or all, ... In my case, the code heavily interfaces with C, and is loaded with conditional compilation directives, cray pointers, and various!DEC$ATTRIBUTES. ...
    (comp.lang.fortran)
  • CRT section Error!
    ... The project compiles successfully when I use the Visual studio+DDK enviroment ... but gives this error on the DDK command line enviroment.On compiling I am ... !ENDIF ... # setup visualC++ source browsing ...
    (microsoft.public.development.device.drivers)
  • Re: Problems with intel fortran compiler version 8
    ... >8 for linux. ... Your program opens unit 5 and reads from unit *. ... the same units, and in Intel Fortran, they are not. ... You need to be sure that your stack is large enough (I found ...
    (comp.lang.fortran)
  • Re: Introducing the Intel(R) Fortran Compiler, Standard and Professional Editions, for Mac OS*
    ... platforms would be a bit less than buying ... That would encourage Intel Fortran users on one ... I just bought Tecplot for Linux, and negotiated a concurrent license to run it under Windows too. ...
    (comp.lang.fortran)
  • Re: Problem with log function - Intel fortran compiler under Linux
    ... we are experiencing a rather nasty problem with the Intel Fortran ... compiler under Linux ... as one of the first statements, the value of aa becomes NaN and some ... Linux: Red Hat Enterprise Linux, ...
    (comp.lang.fortran)