[Ada] Fix RM rule references
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 17 Jul 2018 08:11:49 +0000 (08:11 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 17 Jul 2018 08:11:49 +0000 (08:11 +0000)
2018-07-17  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* sem_util.ads (Denotes_Same_Object): Likewise.
* sem_warn.adb (Warn_On_Overlapping_Actuals): Fix RM rule references.

From-SVN: r262798

gcc/ada/ChangeLog
gcc/ada/sem_util.ads
gcc/ada/sem_warn.adb

index 662c099..7fe98a6 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-17  Piotr Trojanek  <trojanek@adacore.com>
+
+       * sem_util.ads (Denotes_Same_Object): Likewise.
+       * sem_warn.adb (Warn_On_Overlapping_Actuals): Fix RM rule references.
+
 2018-07-17  Eric Botcazou  <ebotcazou@adacore.com>
 
        * exp_disp.adb (Make_Tags): When the type has user-defined primitives,
index 21a74ae..aec3644 100644 (file)
@@ -585,7 +585,7 @@ package Sem_Util is
 
    function Denotes_Same_Object (A1, A2 : Node_Id) return Boolean;
    --  Detect suspicious overlapping between actuals in a call, when both are
-   --  writable (RM 2012 6.4.1(6.4/3))
+   --  writable (RM 2012 6.4.1(6.4/3)).
 
    function Denotes_Same_Prefix (A1, A2 : Node_Id) return Boolean;
    --  Functions to detect suspicious overlapping between actuals in a call,
index 7c3254e..ee0ec6d 100644 (file)
@@ -3630,9 +3630,8 @@ package body Sem_Warn is
       Form1     : Entity_Id;
       Form2     : Entity_Id;
       Warn_Only : Boolean;
-      --  GNAT warns on overlapping in-out parameters even when there are no
-      --  two in-out parameters of an elementary type, as stated in
-      --  RM 6.5.1 (17/2).
+      --  GNAT warns on overlapping in-out parameters of any type, not just for
+      --  elementary in-out parameters (as specified in RM 6.4.1 (15/3-17/3)).
 
    --  Start of processing for Warn_On_Overlapping_Actuals