Commit 30dc4313 by Robert Dewar Committed by Arnaud Charlet

lib-xref.adb: Add error defense.

2008-08-01  Robert Dewar  <dewar@adacore.com>

	* lib-xref.adb: Add error defense.

From-SVN: r138507
parent 7406fc15
...@@ -1834,7 +1834,11 @@ package body Lib.Xref is ...@@ -1834,7 +1834,11 @@ package body Lib.Xref is
Par : Node_Id; Par : Node_Id;
begin begin
if Ekind (Scope (E)) /= E_Generic_Package then -- The Present check here is an error defense
if Present (Scope (E))
and then Ekind (Scope (E)) /= E_Generic_Package
then
return False; return False;
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