Commit d48e258e by Ed Schonberg Committed by Arnaud Charlet

exp_dist.adb (Copy_Specification): For access parameters...

2006-02-13  Ed Schonberg  <schonberg@adacore.com>

	* exp_dist.adb (Copy_Specification): For access parameters, copy
	Null_Exclusion flag, which will have been set for stream subprograms
	in Ada2005 mode.

From-SVN: r111065
parent b0efe69e
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1992-2005, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -1880,7 +1880,7 @@ package body Exp_Dist is ...@@ -1880,7 +1880,7 @@ package body Exp_Dist is
For_RAS : Boolean := False; For_RAS : Boolean := False;
begin begin
if not Present (Parameter_Specifications (Spec)) then if No (Parameter_Specifications (Spec)) then
return New_List; return New_List;
end if; end if;
...@@ -2255,12 +2255,17 @@ package body Exp_Dist is ...@@ -2255,12 +2255,17 @@ package body Exp_Dist is
Root_Type (Current_Etype) = Root_Type (Object_Type)); Root_Type (Current_Etype) = Root_Type (Object_Type));
Current_Type := Current_Type :=
Make_Access_Definition (Loc, Make_Access_Definition (Loc,
Subtype_Mark => New_Occurrence_Of (Stub_Type, Loc)); Subtype_Mark => New_Occurrence_Of (Stub_Type, Loc),
Null_Exclusion_Present =>
Null_Exclusion_Present (Current_Type));
else else
Current_Type := Current_Type :=
Make_Access_Definition (Loc, Make_Access_Definition (Loc,
Subtype_Mark => Subtype_Mark =>
New_Occurrence_Of (Current_Etype, Loc)); New_Occurrence_Of (Current_Etype, Loc),
Null_Exclusion_Present =>
Null_Exclusion_Present (Current_Type));
end if; end if;
else else
......
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