aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2020-04-08 10:56:44 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2020-06-16 09:07:17 -0400
commit96bd3460c906cffa40a4f0ca92adea6ad79d7059 (patch)
tree13af53a1b64e0b4bef4f87eb577e8e117b795817
parent1a3680ffe365ee5bf3cf8faf77ca79dca24c8634 (diff)
downloadgcc-96bd3460c906cffa40a4f0ca92adea6ad79d7059.zip
gcc-96bd3460c906cffa40a4f0ca92adea6ad79d7059.tar.gz
gcc-96bd3460c906cffa40a4f0ca92adea6ad79d7059.tar.bz2
[Ada] Fix typo in comment about overlapping actuals
2020-06-16 Piotr Trojanek <trojanek@adacore.com> gcc/ada/ * sem_warn.adb (Warn_On_Overlapping_Actuals): Fix typo in comment.
-rw-r--r--gcc/ada/sem_warn.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sem_warn.adb b/gcc/ada/sem_warn.adb
index 4f4728c..1ca5d5a 100644
--- a/gcc/ada/sem_warn.adb
+++ b/gcc/ada/sem_warn.adb
@@ -3697,7 +3697,7 @@ package body Sem_Warn is
-- there is no other name among the other parameters of mode in out or
-- out to C that is known to denote the same object (RM 6.4.1(6.15/3))
-- This has been clarified in AI12-0216 to indicate that the illegality
- -- only occurs if both formals are of an elementary type, bevause of the
+ -- only occurs if both formals are of an elementary type, because of the
-- non-determinism on the write-back of the corresponding actuals.
-- Earlier versions of the language made it illegal if only one of the
-- actuals was an elementary parameter that overlapped a composite