On Wednesday 03 August 2011 10:56:25 Michael Mc Donnell wrote:
It is *technically* undefined, but all the compilers I have tested it on do the same thing.
There may be a future compiler that behaves differently. You may get away with it right now, but it will cause pain in the rear sooner or later.
(I didn't know bitfield layout is undefined, otherwise I wouldn't have advised you to keep using them)