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,556e5b18154df788 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.96.225 with SMTP id dv1mr254758wib.6.1364623194362; Fri, 29 Mar 2013 22:59:54 -0700 (PDT) Path: p18ni26215wiv.0!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Interresting, possibly buggy behavior in GNAT generics w/ expression function. References: <437c6b9a-b476-40c5-b4aa-3d7e611ba3f1@googlegroups.com> Date: Sat, 30 Mar 2013 01:59:47 -0400 Message-ID: <85ehexv358.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) Cancel-Lock: sha1:ZlMjd+j5w8dqb0TjRpwvfQTHQZM= MIME-Version: 1.0 X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: bed7d51567f54e3fb8a7904442 X-Received-Bytes: 1721 Content-Type: text/plain Date: 2013-03-30T01:59:47-04:00 List-Id: Shark8 writes: > On Thursday, March 28, 2013 12:06:39 PM UTC-6, Simon Wright wrote: >> As written, your code outputs 'margin-left="88%"' - looks good to me! >> >> I think that when reporting a bug you should show >> >> * what you did >> * what happened >> * what you expected to happen > > Yes; now alter the Image profile from > Function Image(Value : Positive) Return String is > to > Function Image(Value : Natural) Return String is > then recompile & re-run. > > That one change alters the output to margin-left="884" ... which is > the problem I'm describing. Yes, that looks like a GNAT compiler bug. Note that it would have been clearer if you had posted the version of the code that gives incorrect results. It would also help if you used the conventional style of making reserved words all lowercase. -- -- Stephe