comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@baesystems.com>
Subject: Re: Problem with generic parameter
Date: Wed, 22 Jun 2005 12:16:42 +0100
Date: 2005-06-22T11:18:22+00:00	[thread overview]
Message-ID: <42b946b9_1@glkas0286.greenlnk.net> (raw)
In-Reply-To: m2acli7kvd.fsf@hugin.crs4.it

Jacob Sparre Andersen wrote:
> When I try to compile the program included below (cut down version of
> a test program) GNAT 3.15p reports:
>
> -----
> Compiling: demo.adb (source file time stamp: 2005-06-22 10:10:41)
>
>     16.                               Measurement_Array =>
>
>         Measurement_Array); | >>> component subtype of actual does
>         not match that of formal "Measurement_Array" >>>
> instantiation abandoned
>
>  20 lines: 2 errors
> -----
>
> I can't see _how_ it doesn't match.  Can somebody figure out what I'm
> doing wrong?  And maybe even suggest me an elegant solution to the
> problem?

Use a more compliant compiler! This works just fine with ObjectAda 7.2.2
(U18).

Actually, given that it doesn't work with GNAT GAP 1.1.0 either, I'll leave
it to a language lawyer to decide which is more compliant! :-)

Cheers

-- Martin





  reply	other threads:[~2005-06-22 11:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22 10:21 Problem with generic parameter Jacob Sparre Andersen
2005-06-22 11:16 ` Martin Dowie [this message]
2005-06-22 11:58 ` Marius Amado Alves
2005-06-22 13:09   ` Jacob Sparre Andersen
2005-06-22 14:26     ` Marius Amado Alves
     [not found] ` <f6af3631a69872fe2f46258f86b08473@netcabo.pt>
2005-06-22 12:43   ` Marius Amado Alves
replies disabled

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