3 ms·
Yes, the C rules are weird as that. I believe that GCC semi official stance is that stores always change the effective type of memory, not just for anonymous me
by gpderetta 10y ago
Yes, the C rules are weird as that. I believe that GCC semi official stance is that stores always change the effective type of memory, not just for anonymous memory (this is more relaxed than the C rules, but handles correctly cases which are ambiguous under the standard rules).
C++ has the same rules as C for trivially constructible objects, but for objects with non trivial constructors, things are more complicated (and keep being revised at every standard update).