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

Andrew Pinski pinskia@physics.uc.edu
Mon Aug 23 23:58:00 GMT 2004


On Aug 23, 2004, at 3:58 PM, Roger Sayle wrote:

> Could one of GCC's resident C/C++ language lawyers confirm that the
> behaviour of the following code is undefined?

It is not undefined but unspecified.  I cannot remember what that
means except that we don't have to document how it works, unlike
implementor defined.

This was also PR15330:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15330


Thanks,
Andrew Pinski



More information about the Gcc mailing list