comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Controlled and funny GNAT warning
Date: Mon, 22 Jan 2007 10:34:53 +0100
Date: 2007-01-22T10:34:53+01:00	[thread overview]
Message-ID: <ep20ft$o6s$2@cernne03.cern.ch> (raw)

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 -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? :-)

-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



             reply	other threads:[~2007-01-22  9:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-22  9:34 Maciej Sobczak [this message]
2007-01-22  9:46 ` Controlled and funny GNAT warning Duncan Sands
2007-01-22 10:09 ` Georg Bauhaus
replies disabled

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