On Thu, 2011-01-13 at 12:14 -0700, Charles Curley wrote:
> On Thu, 13 Jan 2011 11:01:29 -0700
> Dave Smith <[email protected]> wrote:
> 
> > I am starting to wonder if 
> > maybe RHEL patches g++.
> 
> They may well. Red Hat bought out Cygnus, at that time the greatest
> concentration of GCC contributors going.

If you look at the rhel5 gcc srpm, you can see they have about 108
patches applied.  I would suspect that Ubuntu would have it patched up
too, just not quite as bad.

> 
> > 
> > The warning is this:
> > 
> >     double d = 42.0;
> >     int i = d; // Warning here
> 
> Without an explicit cast, shouldn't that be fatal? As you say, it
> isn't. On Ubuntu, even with gcc -Wall, I get no warning.

I would expect it to be fatal as well.  I am surprised that it isn't.  

> 
> In any case, don't do that. The ANSI C standard leaves undefined the
> results of such a conversion, which means you are at the mercy of the
> implementor.
> 


Nathan

Attachment: signature.asc
Description: This is a digitally signed message part

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to