* YACB: Protected type and array assignment causes backend failture
@ 2004-04-02 15:30 Lutz Donnerhacke
0 siblings, 0 replies; only message in thread
From: Lutz Donnerhacke @ 2004-04-02 15:30 UTC (permalink / raw)
$ cat > t.adb <<END
procedure T is
protected type PT(size : Positive) is
entry Copy(Boolean)(data : out String; last : out Natural);
private
mydata : String(1 .. size);
end PT;
protected body PT is
entry Copy(for b in Boolean)(data : out String; last : out Natural)
when True is
mylast : Positive := Natural'Min(data'Length, mydata'Length) - 1;
begin
last := data'First + mylast;
data(data'First .. last) := mydata(1 .. mylast);
end Copy;
end PT;
begin
null;
end T;
END
$ gcc -c t.adb
t.adb: In function t.ptPT.E15b':
t.adb:2: error: prior parameter's size depends on size'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-02 15:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-02 15:30 YACB: Protected type and array assignment causes backend failture Lutz Donnerhacke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox