comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: "Ada Gems": Constructor functions
Date: Tue, 11 Sep 2007 21:33:53 -0000
Date: 2007-09-11T21:33:53+00:00	[thread overview]
Message-ID: <1189546433.646201.242950@e34g2000pro.googlegroups.com> (raw)
In-Reply-To: <46e647af$0$30379$9b4e6d93@newsspool4.arcor-online.net>

On Sep 11, 12:51 am, Georg Bauhaus
<bauhaus.rm.t...@maps.futureapps.de> 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




  parent reply	other threads:[~2007-09-11 21:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-05 18:10 "Ada Gems": Constructor functions Tomek Wałkuski
2007-09-05 22:47 ` Jeffrey R. Carter
     [not found]   ` <1189064716.528979.201170@19g2000hsx.googlegroups.com>
2007-09-06  7:54     ` Tomek Wa kuski
2007-09-06 13:55       ` Robert A Duff
2007-09-06 14:12         ` Tomek Wa kuski
2007-09-06  0:04 ` Robert A Duff
2007-09-06 16:16 ` anon
2007-09-07 10:38   ` Tomek Wa kuski
2007-09-07 15:17     ` Robert A Duff
2007-09-08 18:20       ` Tomek Wa kuski
2007-09-10 13:46         ` Tomek Wa kuski
2007-09-11  7:51           ` Georg Bauhaus
2007-09-11 10:26             ` Tomek Wa kuski
2007-09-11 21:33             ` Anh Vo [this message]
2007-09-12  7:39               ` Tomek Wa kuski
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox