+2018-05-31 Hristian Kirtchev <kirtchev@adacore.com>
+
+ * exp_ch7.adb (Find_Transient_Context): An iteration scheme is a valid
+ boudary for a transient scope.
+
2018-05-31 Valentine Reboul <reboul@adacore.com>
* gnatvsn.ads: Rename "GPL" version to "Community".
| N_Entry_Body_Formal_Part
| N_Exit_Statement
| N_If_Statement
+ | N_Iteration_Scheme
| N_Terminate_Alternative
=>
pragma Assert (Present (Prev));
return Curr;
end if;
- -- An iteration scheme or an Ada 2012 iterator specification is
- -- not a valid context because Analyze_Iteration_Scheme already
- -- employs special processing for them.
+ -- An Ada 2012 iterator specification is not a valid context
+ -- because Analyze_Iterator_Specification already employs special
+ -- processing for it.
- when N_Iteration_Scheme
- | N_Iterator_Specification
- =>
+ when N_Iterator_Specification =>
return Empty;
when N_Loop_Parameter_Specification =>
+2018-05-31 Hristian Kirtchev <kirtchev@adacore.com>
+
+ * gnat.dg/tampering_check1.adb, gnat.dg/tampering_check1_ivectors.ads,
+ gnat.dg/tampering_check1_trim.adb, gnat.dg/tampering_check1_trim.ads:
+ New testcase.
+
2018-05-31 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/size_clause1.adb: New testcase.
--- /dev/null
+-- { dg-do run }
+
+with Tampering_Check1_IVectors; use Tampering_Check1_IVectors;
+with Tampering_Check1_Trim;
+
+procedure Tampering_Check1 is
+ V : Vector;
+
+begin
+ V.Append (-1);
+ V.Append (-2);
+ V.Append (-3);
+
+ Tampering_Check1_Trim (V);
+end Tampering_Check1;
--- /dev/null
+with Ada.Containers.Vectors;
+
+package Tampering_Check1_IVectors is new
+ Ada.Containers.Vectors (Positive, Integer);
--- /dev/null
+procedure Tampering_Check1_Trim
+ (V : in out Tampering_Check1_IVectors.Vector) is
+ use Tampering_Check1_IVectors;
+
+begin
+ while not Is_Empty (V) and then V (V.First) < 0 loop
+ V.Delete_First;
+ end loop;
+end Tampering_Check1_Trim;
--- /dev/null
+with Tampering_Check1_IVectors;
+
+procedure Tampering_Check1_Trim
+ (V : in out Tampering_Check1_IVectors.Vector);