invoke.texi: Update -Waliasing description.
authorArnaud Desitter <arnaud.desitter@ouce.ox.ac.uk>
Tue, 19 Apr 2005 18:56:13 +0000 (18:56 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Tue, 19 Apr 2005 18:56:13 +0000 (18:56 +0000)
* invoke.texi:  Update -Waliasing description.

Co-Authored-By: Steven G. Kargl <kargls@comcast.net>
From-SVN: r98418

gcc/fortran/ChangeLog
gcc/fortran/invoke.texi

index 998bbf3aeacaed4f6e505c298f0fc2277893871d..fb06ed8ef9c9c9f321bb8b9911fb0f209c6490d2 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-19  Arnaud Desitter  <arnaud.desitter@ouce.ox.ac.uk>
+            Steven G. Kargl  <kargls@comcast.net>
+
+       * invoke.texi: Update -Waliasing description
+
 2005-04-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
 
        PR fortran/16861
index 7ffd7af551576e34dc22638b332cf9900b4660c5..971dda1975cdc11291b18664ab7827277ab0a51f 100644 (file)
@@ -329,12 +329,22 @@ This currently includes @option{-Wunused-labels}, @option{-Waliasing},
 @cindex options, -Waliasing
 @item -Waliasing
 @cindex aliasing
-Warn about possible aliasing of dummy arguments. The following example
-will trigger the warning as it would be illegal to @code{bar} to
-modify either parameter.
+Warn about possible aliasing of dummy arguments. Specifically, it warns
+if the same actual argument is associated with a dummy argument with
+@code{intent(in)} and a dummy argument with @code{intent(out)} in a call
+with an explicit interface.
+
+The following example will trigger the warning.
 @smallexample
-  INTEGER A
-  CALL BAR(A,A)
+  interface
+    subroutine bar(a,b)
+      integer, intent(in) :: a
+      integer, intent(out) :: b
+    end subroutine
+  end interface
+  integer :: a
+
+  call bar(a,a)
 @end smallexample