Re: [GD-General] The joy of type aliasing and C
Brought to you by:
vexxed72
From: Alen L. <ale...@cr...> - 2003-12-30 11:37:10
|
> I think the aliasing rules > make it easier to compete with fortran compilers here. Of course, I understand the reasoning on why hidden aliasing needs to reduced/eliminated. But if some part of code _needs_ to access the bit pattern of some data then there must be a legal way to tell the compiler "look, I'm doing something nasty here". Is there? > The problem with int x=*(int *)&f; is sort of side effect here. > I don't really know for sure why there must be a problem, > because the aliasing of the values is sort of obvious, and could > be deduced separately. Seconded. Alen |