From: Georg Bauhaus <bauhaus@arcor.de>
Subject: Re: Controlled and funny GNAT warning
Date: Mon, 22 Jan 2007 11:09:10 +0100
Date: 2007-01-22T11:08:16+01:00 [thread overview]
Message-ID: <1169460549.3985.9.camel@localhost> (raw)
In-Reply-To: <ep20ft$o6s$2@cernne03.cern.ch>
On Mon, 2007-01-22 at 10:34 +0100, Maciej Sobczak wrote:
> Hi,
>
> Consider:
>
> -- p.ads
> with Ada.Finalization;
> package P is
> type T is new Ada.Finalization.Controlled with null record;
> end P;
>
> Just specification. Let's compile it:
$ gnatmake -gnatv -gnatwd p.ads
gcc -c -gnatv -gnatwd p.ads
GNAT GPL 2006 (20060522-34)
Copyright 1992-2006, Free Software Foundation, Inc.
Compiling: p.ads (source file time stamp: 2007-01-22 10:07:43)
4 lines: No errors
> $ gnatmake -gnatv -gnatwd -c p
> gnatgcc -c -gnatv -gnatwd p.ads
>
> GNAT GPL 2005 (20050729)
> Copyright 1992-2005 Free Software Foundation, Inc.
>
> Compiling: p.ads (source file time stamp: 2007-01-20 20:09:07)
>
> 3. type T is new Ada.Finalization.Controlled with null record;
> |
> >>> warning: implicit dereference
>
> 4 lines: No errors, 1 warning
>
>
> What's more funny, there is no problem with Limited_Controlled.
>
> Am I just unlucky while trying to learn Ada? :-)
>
prev parent reply other threads:[~2007-01-22 10:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-22 9:34 Controlled and funny GNAT warning Maciej Sobczak
2007-01-22 9:46 ` Duncan Sands
2007-01-22 10:09 ` Georg Bauhaus [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox