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,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!l28g2000vba.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: GNAT crunch (suspected bug with types derived from unchecked union) Date: Mon, 13 Jul 2009 03:49:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8ad56610-f2e7-4a69-98fc-516e84822582@l28g2000vba.googlegroups.com> NNTP-Posting-Host: 77.198.58.183 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1247482169 29741 127.0.0.1 (13 Jul 2009 10:49:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 13 Jul 2009 10:49:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l28g2000vba.googlegroups.com; posting-host=77.198.58.183; 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:7024 Date: 2009-07-13T03:49:29-07:00 List-Id: Hello, Surprisingly, GNAT persist in crashing when compiling a little project (surprisingly beceause it is known all over the place to be stable). It ask me to send a report by mail, but request me to send some temporary files which I cannot find any where (it gives paths, but no files found for these paths). As I'm not a GNAT Pro client, do you think it is useful if I send a report, even with some missing files ? What are they doing with these files ? (the message aks for source files as well) I will keep an archive of the project in its actual state, to test it on Janus as soon as I will get it (while don't know when). The crash seems to be caused by the usage of an uncheched record. 1) I have an uncheched record defined in a root package. 2) A child package makes a derived new type from this record. 3) This new type is part of another record which has a full representation clause. 4) The compiler first complained the size requested by the representation was too small. 5) So I added an unchecked pragma to the derived type as well. 6) Then when I wanted to compile the project, it crashs (I've tried many time after clean up, but it insist on) I've already meet steps 1 to 5 in this project, but after I've added the pragma to the derived type, it was compiling without a trouble. There it is not. I will have to check the ARM about this pragma, beceause as it is considered a reprensentation clause, I was thinking it was inherited by derived types. But messages from the compiler seems to tell it is not (I do not know if the buf start there, so I will check for it first).