From: Adam Beneschan <adam@irvine.com>
Subject: Re: Possible compiler bug with this simple program
Date: Wed, 3 Sep 2008 07:20:33 -0700 (PDT)
Date: 2008-09-03T07:20:33-07:00 [thread overview]
Message-ID: <0494a60a-a452-436b-86f9-844b398aab4f@b38g2000prf.googlegroups.com> (raw)
In-Reply-To: 2da4989c-4c97-43e9-8102-ba99389fdea9@v16g2000prc.googlegroups.com
On Sep 2, 9:22 pm, Jerry <lancebo...@qwest.net> wrote:
> On Sep 1, 4:19 am, Jerry <lancebo...@qwest.net> wrote:
>
> > On Aug 29, 9:47 pm, Jerry <lancebo...@qwest.net> wrote:
>
> > > On Aug 29, 6:00 pm, "Randy Brukardt" <ra...@rrsoftware.com> wrote:
> > > > "Jerry" <lancebo...@qwest.net> 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).
> > <snip>
> > > > 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
next prev parent reply other threads:[~2008-09-03 14:20 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-28 7:28 Possible compiler bug with this simple program Jerry
2008-08-28 7:56 ` Ludovic Brenta
2008-08-28 21:08 ` Jerry
2008-08-29 20:39 ` Ludovic Brenta
2008-08-29 21:20 ` Jerry
2008-08-29 21:31 ` Jerry
2008-09-02 22:10 ` Santiago Urueña
2008-08-28 8:03 ` Niklas Holsti
2008-08-28 15:54 ` Adam Beneschan
2008-08-28 15:56 ` Adam Beneschan
2008-08-28 21:01 ` Randy Brukardt
2008-08-28 21:29 ` Jerry
2008-08-30 1:00 ` Randy Brukardt
2008-08-30 4:47 ` Jerry
2008-09-01 11:19 ` Jerry
2008-09-03 4:22 ` Jerry
2008-09-03 14:20 ` Adam Beneschan [this message]
2008-09-04 0:22 ` Jerry
2008-09-04 1:18 ` Adam Beneschan
2008-09-04 3:53 ` Randy Brukardt
2008-09-04 1:31 ` Jeffrey R. Carter
2008-09-04 14:35 ` Adam Beneschan
2008-09-04 14:42 ` Jacob Sparre Andersen
2008-09-06 3:03 ` Jerry
2008-09-05 8:17 ` Ludovic Brenta
2008-09-05 15:56 ` Adam Beneschan
2008-09-05 17:09 ` Jeffrey R. Carter
2008-09-04 20:49 ` Simon Wright
2008-08-28 21:16 ` Jerry
2008-08-29 7:41 ` Niklas Holsti
2008-08-30 0:50 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox