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,60c8b2ba217a0a9d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: gnade error References: From: Stephen Leake Date: Tue, 14 Nov 2006 08:42:34 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:sJu3m+zXveMRq/YIHT5jxR9P2HY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 006e54559c7d4759e00d425294 Xref: g2news2.google.com comp.lang.ada:7449 Date: 2006-11-14T08:42:34-05:00 List-Id: Brian May 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