This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/34301] GNAT Bug detected: visibility
- From: "tomas at cernaj dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2007 16:53:19 -0000
- Subject: [Bug ada/34301] GNAT Bug detected: visibility
- References: <bug-34301-15461@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tomas at cernaj dot de 2007-11-30 16:53 -------
Subject: Re: GNAT Bug detected: visibility
> 29. X : constant access T_Type := TA.To_Pointer (50);
[...]
> You have to use "System.Storage_Elements.To_Address (50)" here.
Hmm, thank you for the quick response, but the problem persists
anyway... As I mentioned it compiles alright when moving the declaration
into the public part of the spec (i.e. not deferred).
Am I missing a point or is this indeed a valid construct? (I want the
compiler to optimize an access to a fixed memory location.)
Tomas
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34301