fortran aliasing rules

Tim Prince tprince@myrealbox.com
Thu Mar 16 16:37:00 GMT 2006


Jack Howarth wrote:
>     Is there any updated documentation on the Fortran aliasing rules
> and their impact in gfortran? The only discussion that I can find on
> fortran aliasing rules with gnu compilers is at...
> 
> http://www.sunsite.ualberta.ca/Documentation/Gnu/gcc-3.0.2/html_node/g77_561.html
> 
> ...which is rather old. Shouldn't the existing gfortran documentation be
> expanded to cover this issue? Also it has never been clear to me if
> gfortran is wired to issue any warnings with regard to aliasing violations
> in fortran code. Thanks in advance for any insights on this.
>          Jack
> 
The advice there looks reasonably valid.  f90 (any implementation, not 
only gfortran) "wires" itself to catch the typical f77 aliasing 
violations only when you use interface block or module features.



More information about the Fortran mailing list