This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: C++ aliasing rules
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