> This would mean that StructFlags and ClassFlags will also both have a > wrong value as well.
Yes, can confirm that m_flags = 0 (instead of 1) for a struct containing a pointer. > If there's a compiler/library discrepancy, the compiler should be > adjusted to write out the value at the correct size. > > I think the following below should do it. The diff fixes the problems for me. I first encountered the algn = 0 in an associative array and couldn't immediately link it to structs. In order to make pinpointing easier in the future I wrote a simple test case for this that I'm going to post with the next diff. Regards Robin