Commit 3e699954 by Ed Schonberg Committed by Arnaud Charlet

freeze.adb (Freeze_Entity): Do not generate a freeze node for a generic unit...

2017-09-06  Ed Schonberg  <schonberg@adacore.com>

	* freeze.adb (Freeze_Entity): Do not generate a freeze
	node for a generic unit, even if it includes delayed aspect
	specifications. Freeze nodes for generic entities must never
	appear in the tree that reaches the back-end of the compiler.

From-SVN: r251766
parent 9fb1e654
2017-09-06 Ed Schonberg <schonberg@adacore.com>
* freeze.adb (Freeze_Entity): Do not generate a freeze
node for a generic unit, even if it includes delayed aspect
specifications. Freeze nodes for generic entities must never
appear in the tree that reaches the back-end of the compiler.
2017-09-06 Yannick Moy <moy@adacore.com>
* treepr.adb (Print_Entity_Info): Do not print empty Elist.
......
......@@ -5489,6 +5489,13 @@ package body Freeze is
then
Explode_Initialization_Compound_Statement (E);
end if;
-- Do not generate a freeze node for a generic unit.
if Is_Generic_Unit (E) then
Result := No_List;
goto Leave;
end if;
end if;
-- Case of a type or subtype being frozen
......
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