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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,71aa8acfc8368f1c X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: BLAS Date: 2000/05/15 Message-ID: #1/1 X-Deja-AN: 623688868 Sender: bobduff@world.std.com (Robert A Duff) References: Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 2000-05-15T00:00:00+00:00 List-Id: Duncan Sands writes: > >> generic > >> type Float_Type is digits <>; > >> type Matrix is array (Integer range <>, Integer range <>) of Float_Type'Base; > >> > >> is rejected by GNAT. > > > >On what grounds? It looks legal to me... > > GNAT says: > 3. type Matrix is array (Integer range <>, Integer range <>) of Float_Type'Base; > | > >>> only a subtype mark is allowed in a formal > > The RM says (Generic Units - Formal Array Types): "The only form of > discrete_subtype_definition that is allowed within the declaration of > a generic formal (constrained) array subtype is a subtype_mark." But Float_Type'Base *is* a subtype_mark. See AARM-3.2.2(4.a). I suggest you send a bug report. - Bob