Commit d4429d51 by Ed Schonberg Committed by Arnaud Charlet

sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete declaration for the same type.

2008-08-06  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
	declaration for the same type.

From-SVN: r138773
parent dbe01631
......@@ -13210,6 +13210,13 @@ package body Sem_Ch3 is
Set_Scope (Id, Current_Scope);
New_Id := Id;
-- If this is a repeated incomplete declaration, no further
-- checks are possible.
if Nkind (N) = N_Incomplete_Type_Declaration then
return Prev;
end if;
-- Case of full declaration of incomplete type
elsif Ekind (Prev) = E_Incomplete_Type then
......
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