From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ae928372f6e8af2,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!193.111.200.220.MISMATCH!news-peer.gradwell.net!news-peer-lilac.gradwell.net!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada References: Subject: Re: Problem with generic parameter Date: Wed, 22 Jun 2005 12:16:42 +0100 Organization: BAE SYSTEMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Message-ID: <42b946b9_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Date: 22 Jun 2005 11:18:22 GMT NNTP-Posting-Host: 20.133.0.1 X-Trace: 1119439102 news.gradwell.net 38038 dnews/20.133.0.1 X-Complaints-To: news-abuse@gradwell.net Xref: g2news1.google.com comp.lang.ada:11548 Date: 2005-06-22T11:18:22+00:00 List-Id: 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