comp.lang.ada
 help / color / mirror / Atom feed
* Renaming an abstract function
@ 2001-11-15 23:52 Nick Roberts
  2001-11-16 14:52 ` Stephen Leake
  0 siblings, 1 reply; 11+ messages in thread
From: Nick Roberts @ 2001-11-15 23:52 UTC (permalink / raw)


When given the program:

   package Test1 is
      type T is abstract tagged limited private;
      function P (X, Y: in T) return T is abstract;
      function "*" (A, B: in T) return T renames P; -- error line
   private
      type T is abstract tagged limited null record;
   end;

GNAT 3.12p on Windows 95 returns the error message:

   function that returns abstract type must be abstract

Is this a bug in: (a) GNAT; (b) the RM95; or (c) my brain?

Full detailed explanation welcome (if applicable).

--
Best wishes,
Nick Roberts






^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-11-24  3:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-15 23:52 Renaming an abstract function Nick Roberts
2001-11-16 14:52 ` Stephen Leake
2001-11-17  3:08   ` Adam Beneschan
2001-11-17 17:47     ` Egil Harald Hoevik
2001-11-17 18:33     ` Stephen Leake
2001-11-17 22:00     ` Mark Biggar
2001-11-17 23:17       ` Nick Roberts
2001-11-19 15:38       ` Stephen Leake
2001-11-22  3:14         ` Nick Roberts
2001-11-23 15:40           ` Stephen Leake
2001-11-24  3:55             ` Nick Roberts

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