Commit 97b9064f by Bob Duff Committed by Arnaud Charlet

sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a call only in the…

sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a call only in the static elaboration model.

2013-04-12  Bob Duff  <duff@adacore.com>

	* sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a
	call only in the static elaboration model.

From-SVN: r197913
parent ce532f42
2013-04-12 Bob Duff <duff@adacore.com>
* sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a
call only in the static elaboration model.
2013-04-12 Hristian Kirtchev <kirtchev@adacore.com> 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
* sem_prag.adb (Analyze_Input_List): Detect an illegal dependency * sem_prag.adb (Analyze_Input_List): Detect an illegal dependency
......
...@@ -175,7 +175,7 @@ package body Sem_Attr is ...@@ -175,7 +175,7 @@ package body Sem_Attr is
-- Note that the only required action of this procedure is to catch the -- Note that the only required action of this procedure is to catch the
-- static expression cases as described in the RM. Folding of other cases -- static expression cases as described in the RM. Folding of other cases
-- is done where convenient, but some additional non-static folding is in -- is done where convenient, but some additional non-static folding is in
-- N_Expand_Attribute_Reference in cases where this is more convenient. -- Expand_N_Attribute_Reference in cases where this is more convenient.
function Is_Anonymous_Tagged_Base function Is_Anonymous_Tagged_Base
(Anon : Entity_Id; (Anon : Entity_Id;
...@@ -654,10 +654,11 @@ package body Sem_Attr is ...@@ -654,10 +654,11 @@ package body Sem_Attr is
Kill_Current_Values; Kill_Current_Values;
end if; end if;
-- Treat as call for elaboration purposes and we are all done. -- In the static elaboration model, treat the attribute reference
-- Suppress this treatment under debug flag. -- as a call for elaboration purposes. Suppress this treatment
-- under debug flag. In any case, we are all done.
if not Debug_Flag_Dot_UU then if not Dynamic_Elaboration_Checks and not Debug_Flag_Dot_UU then
Check_Elab_Call (N); Check_Elab_Call (N);
end if; 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