3 ms·
Ugh. Aliasing rules in C/C++ are very unfortunate, but it's hard to tighten the rules after the fact. Related: The Strict Aliasing Situation is Pretty Bad (201
by slavik81 7y ago
Ugh. Aliasing rules in C/C++ are very unfortunate, but it's hard to tighten the rules after the fact.
Related: The Strict Aliasing Situation is Pretty Bad (2016) https://blog.regehr.org/archives/1307 https://blog.regehr.org/archives/1307
- pingyong 7y ago>but it's hard to tighten the rules after the fact. Depends on what you mean by tighten the rules. If you tighten the rules for the optimizer by simply allowing everything to alias, that should not introduce bugs into currently well formed programs. (Except that they might be slower.)