Commit 8ffcc234 by Eric Botcazou Committed by Eric Botcazou

re PR ada/52735 (ICE in gnat_to_gnu_entity at gcc-interface/decl.c:4156)

	PR ada/52735
	* gnat.dg/nested_generic1.adb: New test.
	* gnat.dg/nested_generic1_pkg.ad[sb]: New helper.

From-SVN: r194523
parent 4e8661cd
2012-12-15 Eric Botcazou <ebotcazou@adacore.com>
PR ada/52735
* gnat.dg/nested_generic1.adb: New test.
* gnat.dg/nested_generic1_pkg.ad[sb]: New helper.
2012-12-15 Eric Botcazou <ebotcazou@adacore.com>
PR ada/53766
* gnat.dg/controlled7.ad[sb]: New test.
......
-- PR ada/52735
-- Reported by Per Sandberg <per.sandberg@bredband.net>
-- { dg-do compile }
with Nested_Generic1_Pkg;
procedure Nested_Generic1 is
package P is new Nested_Generic1_Pkg;
begin
null;
end;
package body Nested_Generic1_Pkg is
procedure Image_Generic
(Renderer : in not null Element_Renderer) is
begin
null;
end;
procedure Image_Standard_Instance is new Image_Generic;
end Nested_Generic1_Pkg;
generic
package Nested_Generic1_Pkg is
type Element_Renderer is access procedure;
generic procedure Image_Generic (Renderer : in not null Element_Renderer);
end Nested_Generic1_Pkg;
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