On Wed, 2007-05-23 at 22:16 +0100, Derek M Jones wrote:
> > extern int n;
> > struct {
> > int x : 1 + n - n;
> > } y;
> >
> > passes with -pedantic -std=c99. Replacing that with 1 + n - n + n - n
> > is still OK with gcc; 1 + n + n - n - n is not.
> >
> > So that's hardly an example of, well, anything.
>
> It is an example of order of evaluation mattering when overflow
> occurs.
I shudder to think of the architecture where integer overflow and
bit-field declarations are mentioned in the same sentence.
nash
[Going back to lurking, on his new amd2147483648]
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html