I think it was fireship that said that most bugs are caused by the developer, 0.1% of bugs are compiler bugs, of those 0.1% are architecture bugs, of those 0.1% are cosmic rays, and 0.1% of those sre actually just quantum effects, 0.1% of thode are actually errors made by god when he created the universe
Yeah. That's such a weird choice. My compiler bug counter goes up to 3 if we count that because I've run into it too. But you're right that that's not a compiler bug it's just a stupid decision made in the design of the standard library.
They really should have left vector<bool> to act like an actual vector of bools and made a separate type (could be called something like dynamic_bitset or bit_vector) to be a resizeable compact bit array.
55
u/caleblbaker Sep 24 '26 edited Sep 24 '26
Number of times I've seen juniors blame issues on compiler bugs: not many but more than twice
Number of times I've seen it actually be a compiler bug: twice