aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2020-06-04 10:13:16 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2020-07-15 09:42:56 -0400
commit580fe036c88b0b696a605ba955a271877a28d955 (patch)
tree1b703dc3ffa31c22fa1a2ed8d13ea4b2fa66454a
parent4c1e539511beba77c4bc803a2f86bc91e37d6827 (diff)
downloadgcc-580fe036c88b0b696a605ba955a271877a28d955.zip
gcc-580fe036c88b0b696a605ba955a271877a28d955.tar.gz
gcc-580fe036c88b0b696a605ba955a271877a28d955.tar.bz2
[Ada] Mention -gnat2020 in error message
gcc/ada/ * sem_ch13.adb (Check_Aspect_Too_Late): Mention -gnat2020 switch in error message.
-rw-r--r--gcc/ada/sem_ch13.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb
index 5937ce2..6283624 100644
--- a/gcc/ada/sem_ch13.adb
+++ b/gcc/ada/sem_ch13.adb
@@ -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);