comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@acm.org>
To: comp.lang.ada@ada-france.org
Subject: Re: Odd error with access to derived types
Date: 16 Oct 2004 20:32:19 -0400
Date: 2004-10-16T20:32:19-04:00	[thread overview]
Message-ID: <mailman.7.1097973215.10401.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <sa4u0sub3hs.fsf@snoopy.apana.org.au>

Brian May <bam@snoopy.apana.org.au> writes:

> >>>>> "Stephen" == Stephen Leake <stephen_leake@acm.org> writes:
> 
>     Stephen> A.Imran <me5@privacy.net> writes:
>     >> Thank you for looking at the code.  Here is the error message:
>     >> 
>     >> ~> gnatmake test gcc -c test.adb parent-child.ads:10:09:
>     >> "derived_access" conflicts with declaration at line 6 gnatmake:
>     >> "test.adb" compilation error
> 
>     Stephen> That is certainly a confusing error message. I'd call it
>     Stephen> a compiler bug; submit this to report@gnat.com.
> 
> Was the previous code valid? If not, why not?

I don't know. 

> <snip>
> 
> It would appear that derived_access needs the full definition of
> derived_type in order to work because it contains a task. I don't
> understand why.

This probably has something to do with "freezing rules", which are
notoriously tricky.

-- 
-- Stephe




  reply	other threads:[~2004-10-17  0:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <feusm0hpbe5frsvljam7jbllqvftusc10v@4ax.com>
2004-10-14 19:17 ` Odd error with access to derived types Niklas Holsti
2004-10-15  1:28 ` Stephen Leake
2004-10-16  0:30   ` A. Imran
2004-10-16 12:58     ` Stephen Leake
2004-10-17  0:19       ` Brian May
2004-10-17  0:32         ` Stephen Leake [this message]
2004-10-17 12:14           ` A. Imran
replies disabled

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