Rep spec for tagged type

From: Daniel Wild (dan_at_example.com)
Date: 08/13/04


Date: 13 Aug 2004 20:47:59 +0930

I'm trying to create a rep spec for a tagged type and getting errors
from GNAT that say `compoonent overlaps tag field of ...'.

I gather this means that GNAT stores the tag for the type at the
beginning of the memory used for the type and I'm trying to overwrite
that by starting my rep spec at 0.

So, I figure I need to shift my rep spec along by however big the tag
is. How can I find the size of this? (I'd rather do it properly that
assume it's 32 bits on my machine).

Thanks,
Dan.



Relevant Pages

  • Re: BUG in VB.NET XML comment engine?
    ... Aren't 'standards' grand:) ... > specifically included by the C# spec either. ... Even if the tag is semantically ... This ambiguity obviously does not ...
    (microsoft.public.dotnet.languages.vb)
  • Re: GNAT-2005
    ... <snip spec> ... then compile the package's body, GNAT does not report that ... such as that for FUNC_BAVCPRd for which scalars are parameters, GNAT ... immediately reports "function FUNC_BAVCPRd undefined" when I compile ...
    (comp.lang.ada)
  • Re: Extending discriminant types
    ... -- This works in Ada 95 compilers because all types including a tag type ... Because the poster states that he can compiler the code. ... I used Gnat 3.15p using Ada 95 specs. ...
    (comp.lang.ada)
  • Re: BUG in VB.NET XML comment engine?
    ... specifically included by the C# spec either. ... Even if the tag is semantically wrong, ... This ambiguity obviously does not prove ... | "The documentation generator must accept and process any tag that is valid ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Compilation error with GNAT
    ... I have a large set of source files, some of which are spec ... Gnat complains that the file has only a spec, ... it reports a compilation error. ... have one, or if you don't actually use this package, you could simply ...
    (comp.lang.ada)