From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: gnade error
Date: Tue, 14 Nov 2006 08:42:34 -0500
Date: 2006-11-14T08:42:34-05:00 [thread overview]
Message-ID: <ur6w6w3ed.fsf@stephe-leake.org> (raw)
In-Reply-To: sa464dicuwz.fsf@margay.local
Brian May <bam@snoopy.apana.org.au> writes:
> gnu-db-sqlcli.adb:134:42: cannot inline "To_Ada" (call returns
> unconstrained type)
That seems clear to me.
> The code in question is:
>
> function To_Ada (State : C_SQLSTATE) return SQLSTATE is
> use Ada.Strings.Fixed;
> S : constant String := Interfaces.C.To_Ada (State, False);
> R : SQLSTATE;
> begin
> Move (Source => S, Target => R);
> SQLFixNTS (R);
> return R;
> end To_Ada;
>
> It looks OK to me...
It's _legal_, but somewhere the code requests inlining of To_Ada,
which GNAT can't do, for the reason stated.
The fix is to remove the 'pragma Inline'.
--
-- Stephe
next prev parent reply other threads:[~2006-11-14 13:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 8:08 gnade error Brian May
2006-11-14 9:20 ` Dmitry A. Kazakov
2006-11-14 13:42 ` Stephen Leake [this message]
2006-11-14 17:01 ` Jeffrey R. Carter
2006-11-14 17:52 ` Adam Beneschan
2006-11-15 1:23 ` Jeffrey R. Carter
2006-11-15 14:28 ` Robert A Duff
2006-11-14 23:52 ` Brian May
2006-11-15 0:07 ` Ludovic Brenta
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox