aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2020-10-15 00:13:51 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2020-11-25 08:22:37 -0500
commita79039c0ebcfbc1cd5b81004828626f1a81e790d (patch)
tree1cf608b7429b41977286be89dd31dbbb6e48e2cf /gcc
parentad26cae122e1ffd7f1c34fd531d4329b8f4048da (diff)
downloadgcc-a79039c0ebcfbc1cd5b81004828626f1a81e790d.zip
gcc-a79039c0ebcfbc1cd5b81004828626f1a81e790d.tar.gz
gcc-a79039c0ebcfbc1cd5b81004828626f1a81e790d.tar.bz2
[Ada] Fix copy-paste mistake in diagnostics for aspect Effective_Writes
gcc/ada/ * sem_ch13.adb (Analyze_One_Aspect): Replace duplicate of Effective_Reads.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/sem_ch13.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb
index 3a906c7..4659a48 100644
--- a/gcc/ada/sem_ch13.adb
+++ b/gcc/ada/sem_ch13.adb
@@ -2849,7 +2849,7 @@ package body Sem_Ch13 is
or else A_Id = Aspect_Async_Readers
or else A_Id = Aspect_Async_Writers
or else A_Id = Aspect_Effective_Reads
- or else A_Id = Aspect_Effective_Reads
+ or else A_Id = Aspect_Effective_Writes
then
Error_Msg_Name_1 := Nam;
@@ -2882,7 +2882,7 @@ package body Sem_Ch13 is
and then A_Id /= Aspect_Async_Readers
and then A_Id /= Aspect_Async_Writers
and then A_Id /= Aspect_Effective_Reads
- and then A_Id /= Aspect_Effective_Reads
+ and then A_Id /= Aspect_Effective_Writes
then
Error_Msg_N
("aspect % not allowed for formal type declaration",