projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c1e539
)
[Ada] Mention -gnat2020 in error message
author
Arnaud Charlet
<charlet@adacore.com>
Thu, 4 Jun 2020 08:13:16 +0000
(10:13 +0200)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Wed, 15 Jul 2020 13:42:56 +0000
(09:42 -0400)
gcc/ada/
* sem_ch13.adb (Check_Aspect_Too_Late): Mention -gnat2020 switch
in error message.
gcc/ada/sem_ch13.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/sem_ch13.adb
b/gcc/ada/sem_ch13.adb
index 5937ce2bfe3d6b4075fd12434a4131fef612994d..62836249e11614725e792902503cb5e0a63db97b 100644
(file)
--- 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);