Comment 7 for bug 1972043

Revision history for this message
Julian Andres Klode (juliank) wrote :

Oh I have another question: Does this actually turn accessing the uninitialized variables into defined behavior, or can the optimizer still treat it as undefined behavior and thus do whatever it want?

Given that this *is* undefined behavior, turning it into defined behavior with a 0 value would be incredibly useful. It likely also breaks some code written to exploit legacy gcc behaviour, but oh well, that is broken anyway.