Flexible array members can lead to undefined behavior?
The Short Answer Yes. Common conventions of using FAMs expose our programs to the possibility of undefined behavior. Having said that, I’m unaware of any existing conforming implementation that would misbehave. Possible, but unlikely. Even if we don’t actually reach undefined behavior, we are still likely to fail strict conformance. No. The offset of the … Read more