cast of float to unsigned char bug on ARM with 3.4.5 - when was it fixed?

Sam Ravnborg
Thu Jan 10 19:57:00 GMT 2008

On Wed, Jan 09, 2008 at 07:51:49AM -0600, John Love-Jensen wrote:
> Hi Sam,
> > I assume this is a know bug that got fixed in later gcc's.
> > I have tried searching the gcc bug database with no luck.
> It's not a GCC bug.  Your code a C bug (if I may be so presumptuous to
> describe using undefined C behavior as a "bug").

I would name it a bug relying on undefined behaviour.
Thanks for clarifyng this!


More information about the Gcc-help mailing list