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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e5a3abec221df39 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!b38g2000prf.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Possible compiler bug with this simple program Date: Wed, 3 Sep 2008 07:20:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0494a60a-a452-436b-86f9-844b398aab4f@b38g2000prf.googlegroups.com> References: <1edc3682-855f-405b-8348-72b423377b1a@i20g2000prf.googlegroups.com> <48b65b3b$0$25384$4f793bc4@news.tdc.fi> <97b1150b-cb8f-4972-b594-2ae59af84147@x16g2000prn.googlegroups.com> <8c8e5e62-16e1-4442-a6e9-f4e63fbed7a8@a8g2000prf.googlegroups.com> <903354c9-7780-4843-a5a3-dd2c40903d40@p31g2000prf.googlegroups.com> <2da4989c-4c97-43e9-8102-ba99389fdea9@v16g2000prc.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1220451633 23106 127.0.0.1 (3 Sep 2008 14:20:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 3 Sep 2008 14:20:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b38g2000prf.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7624 Date: 2008-09-03T07:20:33-07:00 List-Id: On Sep 2, 9:22 pm, Jerry wrote: > On Sep 1, 4:19 am, Jerry wrote: > > > On Aug 29, 9:47 pm, Jerry wrote: > > > > On Aug 29, 6:00 pm, "Randy Brukardt" wrote: > > > > "Jerry" wrote in message > > > > > >FWIW, in the _real_ application that I am working on, plmap is written > > > > >in C (and accessed from my binding by an Import). > > > > > Interestingly, that's completely different. That *should* work on all Ada > > > > compilers (note that the wording specifically excludes unconstrained > > > > parameters for pragma Import). > > > > > > Randy. > > > > I'll see if I can make another example where plmap is a simple program > > > in C that is Import-ed and see if it bombs on a 64-bit computer. > > > > Jerry > > > I've changed the simple example so that plmap is implemented in C. > > There haven't been any responses about the above post with mixed Ada-C > code from this list but I have reports from the other developers on my > project that it also runs OK on 32-bit systems but hangs on 64-bit > systems. > > Unless somebody has further comments in a few days about why this > isn't a bug, I'm going to report it as such. Several of us have pointed out that it's a bad idea to use an unconstrained array type (i.e. Real_Vector) as a parameter to an imported routine (or a routine with convention C), but the above code still did it. -- Adam