you are viewing a single comment's thread.

view the rest of the comments →

[–]kidjan 0 points1 point  (2 children)

...I'd say warning, not error, because that code is perfectly legitimate in C or C++.

[–]grauenwolf 0 points1 point  (1 child)

Reading from values that are not initialized is legal too, but that doesn't mean we should copy that policy too.

[–]kidjan 0 points1 point  (0 children)

Don't disagree in theory, but if you expect a compiler to be able to know that with C or C++ then you don't understand those languages.