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!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Indefinite_Holders: bug or misunderstanding? Date: Wed, 31 Jan 2018 18:31:10 -0600 Organization: JSA Research & Innovation Message-ID: References: Injection-Date: Thu, 1 Feb 2018 00:31:11 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="25773"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:50235 Date: 2018-01-31T18:31:10-06:00 List-Id: "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.