mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-06 02:10:29 +08:00
[Ada] SPARK: minor error message enhancement
2018-09-26 Elisa Barboni <barboni@adacore.com> gcc/ada/ * sem_prag.adb (Check_Refined_Global_Item): Improve error message. From-SVN: r264637
This commit is contained in:
parent
def15641da
commit
1899cb6844
@ -1,3 +1,8 @@
|
||||
2018-09-26 Elisa Barboni <barboni@adacore.com>
|
||||
|
||||
* sem_prag.adb (Check_Refined_Global_Item): Improve error
|
||||
message.
|
||||
|
||||
2018-09-26 Thomas Quinot <quinot@adacore.com>
|
||||
|
||||
* sem_ch13.adb (Inherit_Aspects_At_Freeze_Point): For a
|
||||
|
@ -27730,7 +27730,10 @@ package body Sem_Prag is
|
||||
-- it must be an extra (SPARK RM 7.2.4(3)).
|
||||
|
||||
else
|
||||
SPARK_Msg_NE ("extra global item &", Item, Item_Id);
|
||||
pragma Assert (Present (Global));
|
||||
Error_Msg_Sloc := Sloc (Global);
|
||||
SPARK_Msg_NE ("extra global item & does not refine or " &
|
||||
"repeat any global item #", Item, Item_Id);
|
||||
end if;
|
||||
end if;
|
||||
end Check_Refined_Global_Item;
|
||||
|
Loading…
x
Reference in New Issue
Block a user