5 ms·
Good clarification, you really only know what you're going to get on (language, compiler, compiler version, platform).
by taneq 8y ago
Good clarification, you really only know what you're going to get on (language, compiler, compiler version, platform).
- adrianN 8y agoYou also need to know the exact implementation of your compiler's optimizer, otherwise you don't know whether it's safe to change your program. Any change might give the optimizer enough information to unleash the nasal demons in previously cromulent code.
- twtw 8y agoSure, for UB. But extensions like typeof are different from UB. They have documented behavior, it is just documented by GNU instead of the C standards committee.
- taneq 8y agoAnd it's stuff like this which is making me increasingly uncomfortable with using C++ as my main language. Currently it looks like Rust is the most suitable replacement but I'm not sure if it's there yet.