comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Gnat error msg meaning?
Date: Thu, 26 Dec 2002 23:22:21 GMT
Date: 2002-12-26T23:22:21+00:00	[thread overview]
Message-ID: <NaMO9.320156$pN3.23912@sccrnsc03> (raw)

Perhaps I haven't recovered from the eggnog yet, but why does Gnat give
an error message, what does it mean, and what should I do?

unique_str.ads:11:23: Only static constraints allowed for parent
discriminants in the partial view

relevant source:

package root is
  type String_Counts is range 0 .. 50_000;

  type String_Character_Counts is range 0 .. 100_000_000;

  type Store_Type(Max_Strings : String_Counts;
                  Max_Characters : String_Character_Counts;
                  Task_Safe : Boolean)
    is new Ada.Finalization.Controlled with private;
  ...

package unique_str is
  type Store_Type(Max_Strings : root.String_Counts;
                  Max_Characters : root.String_Character_Counts;
                  Task_Safe : Boolean;
                  Comparison : Comparison_Map_Ptr)
           is new root.Store_Type(Max_Strings, Max_Characters, Task_Safe)
--                    ^ error location
           with private;



             reply	other threads:[~2002-12-26 23:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-26 23:22 tmoran [this message]
2002-12-27 20:04 ` Gnat error msg meaning? Simon Wright
2002-12-27 20:46   ` tmoran
     [not found] <bbegua.m94.ln@beastie.ix.netcom.com>
2002-12-27  4:59 ` tmoran
replies disabled

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