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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,f4387ccd1be41cbe X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e18g2000vbe.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: GNAT crunch (suspected bug with types derived from unchecked union) Date: Mon, 13 Jul 2009 05:51:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: <035b713e-6056-4a4f-a623-6940736a9fc4@e18g2000vbe.googlegroups.com> References: <8ad56610-f2e7-4a69-98fc-516e84822582@l28g2000vba.googlegroups.com> NNTP-Posting-Host: 86.75.149.64 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1247489488 21983 127.0.0.1 (13 Jul 2009 12:51:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 13 Jul 2009 12:51:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e18g2000vbe.googlegroups.com; posting-host=86.75.149.64; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7025 Date: 2009-07-13T05:51:28-07:00 List-Id: More info : The derived type has its full declaration in the private part of a package specification. The public part introduce the type as a private type with an unknown discriminant part (I want all instances of this type, to always be initialized). If I remove the unknown discrimiant part, it compiles without a crash. It does not crash while compiling the package (specification and body), but only when compiling the body of a package which withs this package and declare an instance of the incriminated type (with an unknown discriminant) in the locals of a procedure.