comp.lang.ada
 help / color / mirror / Atom feed
From: haug@localhost.ruhr.de (Haug Buerger)
Subject: GNAT bug?
Date: 1998/02/27
Date: 1998-02-27T00:00:00+00:00	[thread overview]
Message-ID: <c1.01.2KWhlX$01O@zesi.ruhr.de> (raw)


Hi,

i need some help to find out if my program has a fault
or i'm to dump.

I have a generic package with a unconstrained array and
a pointer to it. I can allocate memory with new type(0..x).
If i try to access pointer.all(0) i get a constraint error.

What makes me wonder is that i can allocate with
new type(-1..x) without warning, the array is of "natural
range <>".

The second thing that makes me wonder is that the code
works outside of the generic. I get a warning there if
i try -1..x.

If somebody is willing to compile this very short code with
another compiler and tell me the result i can clear this
point and make a senseful bugreport if necessary.

Haug

For email use haug@zesi.ruhr.de !







             reply	other threads:[~1998-02-27  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-27  0:00 Haug Buerger [this message]
1998-02-28  0:00 ` GNAT bug? Jerry van Dijk
  -- strict thread matches above, loose matches on Subject: below --
1999-02-09  0:00 Juergen.Hoyng
1999-02-09  0:00 ` Stephen Leake
1999-02-10  0:00   ` Pascal Obry
1999-02-10  0:00     ` Tucker Taft
1999-02-11  0:00   ` Juergen.Hoyng
1999-02-10  0:00 ` Pascal Obry
1999-02-10  0:00   ` Tucker Taft
1999-02-11  0:00     ` Pascal Obry
2006-10-27  7:57 Maciej Sobczak
2006-10-27  9:03 ` Stephen Leake
2006-10-27 17:25   ` Martin Krischik
2006-10-27 18:21     ` Pascal Obry
2006-10-27 18:30     ` (see below)
2006-10-27 20:39 Anh Vo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox