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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b672743914db49f X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e34g2000pro.googlegroups.com!not-for-mail From: Anh Vo Newsgroups: comp.lang.ada Subject: Re: "Ada Gems": Constructor functions Date: Tue, 11 Sep 2007 21:33:53 -0000 Organization: http://groups.google.com Message-ID: <1189546433.646201.242950@e34g2000pro.googlegroups.com> References: <1189015827.384331.17490@k79g2000hse.googlegroups.com> <1189161491.346922.174530@g4g2000hsf.googlegroups.com> <1189275647.196090.47920@19g2000hsx.googlegroups.com> <1189431964.575522.250700@g4g2000hsf.googlegroups.com> <46e647af$0$30379$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 209.225.225.89 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1189546435 20297 127.0.0.1 (11 Sep 2007 21:33:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 11 Sep 2007 21:33:55 +0000 (UTC) In-Reply-To: <46e647af$0$30379$9b4e6d93@newsspool4.arcor-online.net> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; InfoPath.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e34g2000pro.googlegroups.com; posting-host=209.225.225.89; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1894 Date: 2007-09-11T21:33:53+00:00 List-Id: On Sep 11, 12:51 am, Georg Bauhaus wrote: > Tomek Wa kuski wrote: > > Also, this same code compiled on Windows with GNAT GPL 2007 throws: > > >> gnatmake test_t.adb > > t.adb:4:07: "" is undefined > > t.adb:4:07: actual for "From" must be a variable > > gnatmake: "c:\documents and settings\tomek\pulpit\test_t\t.adb" > > compilation error > > But no GNAT Bug Box this time? I got the same result, no GNAT Bug Box, on Windows using GNAT-2007- GPL. However, it worked fine on Red Hat with gcc-4.3-20070907 snapshot. One interesting observation, if the return statement is qualified as shown below, it is compiled on Windows, too. return Object'(Name => To_Unbounded_String (Name)); AV