in reply to Re^3: IC problem.[Solved, (feel free to reap)]
in thread IC problem.[Solved, (feel free to reap)]

in a union-type, all variables start at offset zero.

They do. But the bit fields are in a struct nested inside the union. The problem I describe is unique to bit-fields; and unique to bit-fields on 64-bit.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
  • Comment on Re^4: IC problem.[Solved, (feel free to reap)]

Replies are listed 'Best First'.
Re^5: IC problem.[Solved, (feel free to reap)]
by cavac (Prior) on Jun 12, 2015 at 14:11 UTC

    Thanks for the clarification.

    "For me, programming in Perl is like my cooking. The result may not always taste nice, but it's quick, painless and it get's food on the table."

      I should add; the problem as I experienced it may also be unique to MSVC.

      It's one of those areas of the C-language where the various specifications leave much of the implementation details up to the compiler writers.

      I have no idea whether the same problem applies to gcc or others.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
      In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked