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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Alejandro R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Indefinite_Holders: bug or misunderstanding? Date: Thu, 1 Feb 2018 16:53:10 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 1 Feb 2018 15:53:10 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="410db4b419e21cd8e88ad6724efecf4c"; logging-data="3688"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tuxogKLTIhZPBUL6TNJR5" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:wYeIgZX9qhJtC7hQb3UgPx9CnPc= Xref: reader02.eternal-september.org comp.lang.ada:50251 Date: 2018-02-01T16:53:10+01:00 List-Id: On 01/02/18 01:31, Randy Brukardt wrote: > "Shark8" wrote in message > news:bf840108-2cdb-457d-928e-9db658d4d8d2@googlegroups.com... >> Hm, the error-message is straightforward: the compiler is expecting the >> full-definition of Str to have a discriminant. >> >> HOWEVER, I seem to remember* the partial-view ("type Str (<>) is private") >> as indicating only that the type is unconstrained, which the array >> actually is -- so if that's the proper interpretation then this is a >> compiler bug. >> >> >> * I could be misremembering; I don't think that the generic-parameter >> "Type Param(<>) is private" >> >> --------------------------------- >> PS -- Looks like a compiler error. > > I agree, looks like a compiler bug to me. Any non-limited type should work > in a holder. > > Randy. That's what I expected. Submitting then. Thanks, Álex. > >