From: "Y.Tomino" <demoonlit@panathenaia.halfmoon.jp>
Subject: Ada.Containers.Indefinite_Ordered_Maps of gcc 4.0.1 has bug ?
Date: Sat, 06 Aug 2005 20:57:04 +0900
Date: 2005-08-06T20:57:04+09:00 [thread overview]
Message-ID: <dd28id$6ep$1@news522.nifty.com> (raw)
Hello.
Ada.Containers.Indefinite_Ordered_Maps.Adjust seems to me having bug.
Although good if it's my misunderstanding.
pragma Ada_05;
with Ada.Containers.Indefinite_Ordered_Maps;
package M is new Ada.Containers.Indefinite_Ordered_Maps(String, String);
pragma Ada_05;
with Ada.Text_IO; use Ada.Text_IO;
with m; use M;
procedure Test1 is
X, Y : Map;
begin
X.Include("a", "1");
Put_Line(Element(X, "a")); -- "1" OK
Y := X;
Put_Line(Element(Y, "a")); -- "1" OK
Clear(X);
Put_Line(Element(Y, "a"));
-- raised CONSTRAINT_ERROR : a-ciorma.adb:407 access check failed !?
end Test1;
pragma Ada_05;
with Ada.Text_IO; use Ada.Text_IO;
with m; use M;
procedure Test2 is
function X return Map is
R : Map;
begin
R.Include("a", "1");
return R;
end X;
Y : Map := X;
begin
Put_Line(Element(Y, "a"));
-- raised CONSTRAINT_ERROR : a-ciorma.adb:407 access check failed !?
end Test2;
YT
next reply other threads:[~2005-08-06 11:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-06 11:57 Y.Tomino [this message]
2005-08-06 12:54 ` Ada.Containers.Indefinite_Ordered_Maps of gcc 4.0.1 has bug ? Matthew Heaney
2005-08-06 13:13 ` Y.Tomino
[not found] ` <42F4B753.2080004@panathenaia.halfmoon.jp>
2005-08-06 15:37 ` Matthew Heaney
2005-08-06 16:17 ` Y.Tomino
2005-08-06 16:33 ` Matthew Heaney
2005-08-06 16:49 ` Y.Tomino
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox