Commit 1899cb68 by Elisa Barboni Committed by Pierre-Marie de Rodat

[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
parent def15641
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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment