C++ aliasing rules

Nathan Sidwell nathan@acm.org
Thu Apr 25 00:49:00 GMT 2002


Dan Nicolaescu wrote:

>   > I think the answer is no, as no matter what you do, you need to
>   > violate the notion of which struct type the object really was and you
>   > cannot get at the short without going though the struct first, and in
>   > the end, you cannot get through both struct types simultaneously.

> 
> Does anybody disagree with Mike's statement above (wrt C++) ? Jason?
I agree with Mike's analysis.

nathan
-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
           The voices in my head told me to say this
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk



More information about the Libstdc++ mailing list