[Ada] Fix for bootstrap problem with calling function System.Case_Util.To_Mixed

gcc/ada/

	* sem_ch13.adb (Check_And_Resolve_Storage_Model_Type_Argument):
	Call the System.Case_Util.To_Mixed procedure rather than the
	function, to avoid bootstrap problems.
This commit is contained in:
Gary Dismukes 2022-07-09 19:16:51 -04:00 committed by Pierre-Marie de Rodat
parent 9f857be34d
commit d60f61f6a4

View File

@ -17376,9 +17376,11 @@ package body Sem_Ch13 is
Argument_Id : in out Entity_Id;
Nam : Name_Id)
is
Name_String : constant String := To_Mixed (Get_Name_String (Nam));
Name_String : String := Get_Name_String (Nam);
begin
To_Mixed (Name_String);
if Present (Argument_Id) then
Error_Msg_String (1 .. Name_String'Length) := Name_String;
Error_Msg_Strlen := Name_String'Length;