Commit 4e8661cd by Eric Botcazou Committed by Eric Botcazou

re PR ada/53766 (ICE in build_binary_op on Max_Size_In_Storage_Elements with -gnatp)

	PR ada/53766
	* gnat.dg/controlled7.ad[sb]: New test.

From-SVN: r194521
parent c3d79c60
2012-12-15 Eric Botcazou <ebotcazou@adacore.com>
PR ada/53766
* gnat.dg/controlled7.ad[sb]: New test.
2012-12-14 Steve Ellcey <sellcey@mips.com> 2012-12-14 Steve Ellcey <sellcey@mips.com>
PR regression/55688 PR regression/55688
......
-- PR ada/53766
-- Reported by Duncan Sands <baldrick@gcc.gnu.org>
-- { dg-do compile }
-- { dg-options "-gnatp" }
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body Controlled7 is
procedure Proc (Offset : Storage_Offset) is
begin
if Offset + Unbounded_String'Max_Size_In_Storage_Elements >= 16 then
raise Program_Error;
end if;
end;
end Controlled7;
with System.Storage_Elements; use System.Storage_Elements;
package Controlled7 is
procedure Proc (Offset : Storage_Offset);
end Controlled7;
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