diff options
author | Arnaud Charlet <charlet@adacore.com> | 2020-06-04 10:13:16 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-07-15 09:42:56 -0400 |
commit | 580fe036c88b0b696a605ba955a271877a28d955 (patch) | |
tree | 1b703dc3ffa31c22fa1a2ed8d13ea4b2fa66454a /gcc | |
parent | 4c1e539511beba77c4bc803a2f86bc91e37d6827 (diff) | |
download | gcc-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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/sem_ch13.adb | 3 |
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); |