This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Avoiding "assignment from incompatible pointer type" warning
- From: "Moore, Mathew L" <MooreML at BATTELLE dot ORG>
- To: 'Florian Weimer' <fw at deneb dot enyo dot de>, John Love-Jensen <eljay at adobe dot com>
- Cc: Claudio Bley <bley at cs dot uni-magdeburg dot de>, Joshua Nye <josh at boxcarmedia dot com>,Steve Dondley <s at dondley dot com>, gcc-help at gcc dot gnu dot org
- Date: Mon, 21 Oct 2002 10:04:01 -0400
- Subject: RE: Avoiding "assignment from incompatible pointer type" warning
>
> 6.3.2.3(7) only ensures that conforming implementations may not issue
> a diagnostic for such programming errors.
>
To help expand my (very) limited knowledge, does this mean that
float f;
int *p = (int*)&f;
may not work even if sizeof(float) == sizeof(int)?
Thanks,
--Matt