On 3/21/23 13:01, Qing Zhao wrote:
The code previously worked now has some issue since we added some new stuff
into standard, and the compiler added some new transformation based on this new
stuff. Should the compiler issue some warnings to warn the users about such
change? Then the user will go to the new standard to get more info?
It is not at all uncommon to have old code no longer work due to a
compiler update.
This can happen if the compiler changes the default version of the
language it's supporting (say c99 to c11) or fixes a missed-error bug
(more common in C++) or the optimizers just get smarter and code which
was always buggy, but worked by accident no longer works.
When we can reasonably give diagnostics, we try to. Improvements in
this space are appreciated :-)
Jeff