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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b88fa8bfb1f50cc0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.germany.com!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Controlled and funny GNAT warning From: Georg Bauhaus In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-Id: <1169460549.3985.9.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Mon, 22 Jan 2007 11:09:10 +0100 NNTP-Posting-Date: 22 Jan 2007 11:08:16 CET NNTP-Posting-Host: 2c7922b7.newsspool4.arcor-online.net X-Trace: DXC=jk]jU^0Ujn3gP]QSEBQ^d44IUK_UeW= X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8398 Date: 2007-01-22T11:08:16+01:00 List-Id: 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? :-) >