This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Type based aliasing


Robert Dewar wrote:

<<Fortran rules don't allow arguments (which are references in g77) to
overlap at all, so in this case, g77 would just assume (without
checking) that *ip and *fp wouldn't overlap.

Is that really true? I thought the rule was that if there is any aliasing
then assignment by any alias path is forbidden (this certainly was the
original rule in Fortran, it might have changed, but that would surprise me).
The rule is that you can't `define' a dummy argument that's argument-associated with another dummy argument.

`Define' in Fortran-speak is to `have a value assigned to it and all of the entities that are associated with it'.

Assignment is one way to cause problems here, but not the only one.

--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]