[Ada] Mention -gnat2020 in error message
gcc/ada/ * sem_ch13.adb (Check_Aspect_Too_Late): Mention -gnat2020 switch in error message.
This commit is contained in:
parent
4c1e539511
commit
580fe036c8
1 changed files with 2 additions and 1 deletions
|
@ -1034,7 +1034,8 @@ package body Sem_Ch13 is
|
|||
and then Has_Primitive_Operations (Parent_Type)
|
||||
then
|
||||
Error_Msg_N
|
||||
("|representation aspect not permitted before Ada 202x!", N);
|
||||
("|representation aspect not permitted before Ada 202x: " &
|
||||
"use -gnat2020!", N);
|
||||
Error_Msg_NE
|
||||
("\parent type & has primitive operations!", N, Parent_Type);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue