mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-22 21:31:19 +08:00
[Ada] Fix copy-paste mistake in diagnostics for aspect Effective_Writes
gcc/ada/ * sem_ch13.adb (Analyze_One_Aspect): Replace duplicate of Effective_Reads.
This commit is contained in:
parent
ad26cae122
commit
a79039c0eb
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user