+2011-08-29 Robert Dewar <dewar@adacore.com>
+
+ * a-convec.adb, exp_disp.adb: Minor reformatting.
+
+2011-08-29 Tristan Gingold <gingold@adacore.com>
+
+ * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
+
2011-08-29 Gary Dismukes <dismukes@adacore.com>
* exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
return No_Element;
end Next;
- function Next (Object : Iterator; Position : Cursor) return Cursor
- is
+ function Next (Object : Iterator; Position : Cursor) return Cursor is
begin
if Position.Index = Object.Container.Last then
return No_Element;
-
else
return (Object.Container, Position.Index + 1);
end if;
return No_Element;
end Previous;
- function Previous (Object : Iterator; Position : Cursor) return Cursor
- is
+ function Previous (Object : Iterator; Position : Cursor) return Cursor is
begin
if Position.Index > Index_Type'First then
return (Object.Container, Position.Index - 1);
-- to maintain anyway.
type GNAT_GCC_Exception_Access is access all GNAT_GCC_Exception;
+ pragma Convention (C, GNAT_GCC_Exception_Access);
function To_GCC_Exception is new
Unchecked_Conversion (GNAT_GCC_Exception_Access, GCC_Exception_Access);
Typ : Entity_Id)
is
Comp : Entity_Id;
- function Is_Actual_For_Formal_Incomplete_Type (T : Entity_Id)
- return Boolean;
+
+ function Is_Actual_For_Formal_Incomplete_Type
+ (T : Entity_Id) return Boolean;
-- In Ada2012, if a nested generic has an incomplete formal type, the
-- actual may be (and usually is) a private type whose completion
-- appears later. It is safe to build the dispatch table in this
-- Is_Actual_For_Formal_Incomplete_Type --
------------------------------------------
- function Is_Actual_For_Formal_Incomplete_Type (T : Entity_Id)
- return Boolean
+ function Is_Actual_For_Formal_Incomplete_Type
+ (T : Entity_Id) return Boolean
is
Gen_Par : Entity_Id;
F : Node_Id;
+
begin
if not Is_Generic_Instance (Current_Scope)
or else not Used_As_Generic_Actual (T)
return False;
end Is_Actual_For_Formal_Incomplete_Type;
+ -- Start of processing for Check_Premature_Freezing
+
begin
if Present (N)
and then Is_Private_Type (Typ)
and then Present (Comp)
and then not Is_Frozen (Comp)
and then
- not Is_Actual_For_Formal_Incomplete_Type (Comp)
+ not Is_Actual_For_Formal_Incomplete_Type (Comp)
then
Error_Msg_Sloc := Sloc (Subp);
Error_Msg_Node_2 := Subp;