Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

ansi-alias, Qansi-alias

Tells the compiler to assume certain rules of the Fortran standard regarding aliasing and array bounds.

Syntax

Linux:

-ansi-alias

-no-ansi-alias

macOS:

-ansi-alias

-no-ansi-alias

Windows:

/Qansi-alias

/Qansi-alias-

Arguments

None

Default

-ansi-alias
or /Qansi-alias

Programs adhere to the Fortran standard's rules regarding aliasing and array bounds.

Description

This option tells the compiler to assume certain rules of the Fortran standard regarding aliasing and array bounds.

It tells the compiler to assume that the program adheres to the following rules of the Fortran standard:

  • Arrays cannot be accessed outside of declared bounds.

  • A dummy argument may have its definition status changed only through that dummy argument, unless it has the TARGET attribute.

This option is similar to option assume nodummy_aliases with the additional restriction on array bounds.

If -no-ansi-alias (Linux* and macOS) or /Qansi-alias- (Windows*) is specified, the compiler assumes that the program might not follow the Fortran standard's rules regarding dummy argument aliasing and array bounds; this can possibly affect performance.

IDE Equivalent

None

Alternate Options

None

See Also