3 ms·
TBH, I'm surprised by that. I would have though compiler authors would not have released optimization options in this state - when such breakage is encountered
by einpoklum 4y ago
TBH, I'm surprised by that. I would have though compiler authors would not have released optimization options in this state - when such breakage is encountered by testers of nightlies or beta releases.
- eschneider 4y agoStandard compliant programs would be fine, but otherwise "ok" undefined behavior could become breaking. Harsh, but fair.
- einpoklum 4y agoAh, but that's not a compiler bug, that's again an issue with our code... I was only talking about proper bugs.
- eschneider 4y agoA good chunk of what people (used to) term "optimization bugs" fell under that umbrella. Program works w/ optimization off, but fails w/ optimization on. Or optimization would "fail" because of program bugs like uninitialize memory that "works" w/ optimization off. Even with old compilers, if you turned optimization on and saw problems, it was almost always an issue with the code being compiled, not the compiler. But that's often not how the blame was laid.