This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ISO Aliasing rules question
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Michael Matz <matz at suse dot de>
- Cc: "law at redhat dot com" <law at redhat dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Fri, 21 Feb 2003 11:59:25 -0800
- Subject: Re: ISO Aliasing rules question
--On Friday, February 21, 2003 08:38:07 PM +0100 Michael Matz
<matz at suse dot de> wrote:
Yes, but he's accessing a member, not the whole struct. And that access
I'm pretty sure it's the pointer he's using that's the key.
If he wrote:
double *dp = (double*) b;
*dp = 1.0;
that would be fine, but saying b->d = 1.0 isn't.
--
Mark Mitchell mark at codesourcery dot com
CodeSourcery, LLC http://www.codesourcery.com