This is the mail archive of the gcc-help@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]

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


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