This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/34301] GNAT Bug detected: visibility



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]