Commit 9f46106a by Javier Miranda Committed by Pierre-Marie de Rodat

[Ada] Sem_Ch4: minor code cleanup

2018-07-16  Javier Miranda  <miranda@adacore.com>

gcc/ada/

	* sem_ch4.adb (Analyze_Membership_Op): Code cleanup.

From-SVN: r262704
parent 97710dc7
2018-07-16 Javier Miranda <miranda@adacore.com>
* sem_ch4.adb (Analyze_Membership_Op): Code cleanup.
2018-07-16 Javier Miranda <miranda@adacore.com>
* exp_attr.adb (Expand_N_Attribute_Reference ['Count]): Do not
transform 'Count into a function call if the current scope has been
eliminated.
......
......@@ -3031,15 +3031,9 @@ package body Sem_Ch4 is
Analyze_Expression (L);
if No (R) then
if Ada_Version >= Ada_2012 then
Analyze_Set_Membership;
Check_Function_Writable_Actuals (N);
else
Error_Msg_N
("multiple choices in membership tests only allowed in Ada 2012",
N);
end if;
pragma Assert (Ada_Version >= Ada_2012);
Analyze_Set_Membership;
Check_Function_Writable_Actuals (N);
return;
end if;
......
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