projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43d5138
)
[Ada] More precise error about aspects conflicting with Static
author
Piotr Trojanek
<trojanek@adacore.com>
Wed, 9 Dec 2020 13:34:45 +0000
(14:34 +0100)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Wed, 28 Apr 2021 09:38:11 +0000
(
05:38
-0400)
gcc/ada/
* sem_ch13.adb (Analyze_Aspect_Static): Use aspect name in the
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
07dec4c
..
2273887
100644
(file)
--- a/
gcc/ada/sem_ch13.adb
+++ b/
gcc/ada/sem_ch13.adb
@@
-2594,8
+2594,9
@@
package body Sem_Ch13 is
for Asp in Pre_Post_Aspects loop
if Has_Aspect (E, Asp) then
+ Error_Msg_Name_1 := Aspect_Names (Asp);
Error_Msg_N
- ("
this aspect
is not allowed for a static "
+ ("
aspect %
is not allowed for a static "
& "expression function",
Find_Aspect (E, Asp));