24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Restrictions<br />

The -qflag option can override this option.<br />

Examples<br />

The following example contains source code that con<strong>for</strong>ms to a mixture of <strong>Fortran</strong><br />

standards:<br />

!----------------------------------------------------------<br />

! in free source <strong>for</strong>m<br />

program tt<br />

integer :: a(100,100), b(100), i<br />

real :: x, y<br />

...<br />

goto (10, 20, 30), i<br />

10 continue<br />

pause ’waiting <strong>for</strong> input’<br />

20 continue<br />

y= gamma(x)<br />

30 continue<br />

b = maxloc(a, dim=1, mask=a .lt 0)<br />

end program<br />

!----------------------------------------------------------<br />

The following chart shows examples of how some -qlanglvl suboptions affect this<br />

sample program:<br />

-qlanglvl Suboption<br />

Specified Result Reason<br />

95pure<br />

95std<br />

extended<br />

Flags PAUSE statement<br />

Flags computed GOTO<br />

statement<br />

Flags GAMMA intrinsic<br />

Flags PAUSE statement<br />

Flags GAMMA intrinsic<br />

No errors flagged<br />

Deleted feature in<br />

<strong>Fortran</strong> 95<br />

Obsolescent feature in<br />

<strong>Fortran</strong> 95<br />

Extension to <strong>Fortran</strong> 95<br />

Deleted feature in<br />

<strong>Fortran</strong> 95<br />

Extension to <strong>Fortran</strong> 95<br />

Related In<strong>for</strong>mation<br />

See “-qflag Option” on page 162, “-qhalt Option” on page 170, and “-qsaa Option”<br />

on page 227.<br />

The langlvl run-time option, which is described in “Setting Run-Time Options” on<br />

page 51, helps to locate run-time extensions that cannot be checked <strong>for</strong> at compile<br />

time.<br />

190 <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> : User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!