Help with bit-field semantics in C and C++

Joe Buck Joe.Buck@synopsys.COM
Tue Aug 24 22:45:00 GMT 2004


On Tue, Aug 24, 2004 at 02:58:33PM -0700, Mark Mitchell wrote:
> The people who write testsuites for a living think a lot about corner 
> cases and try to write tests that cause compilers to get the corner 
> cases wrong.  They go through the standard line-by-line, thinking of 
> pathological things.  None of them have ever written the test that David 
> is suggesting.

But the suggested test is clearly a non-conforming program, one whose
behavior is unspecified.  This means that no test suite is likely to
contain such a program.

It seems that we are only arguing about what the limits of "unspecified"
are.



More information about the Gcc mailing list