Liste des Groupes | Revenir à c arch |
On 03.09.24 10:10, David Brown wrote:Some of those /are/ warned about by compilers (but I'd rather the standards said that they were errors). But in general, many can be handled by good development practice and compiler warnings. Still, compilers could always get better!
snip 8< - - - - - - - -
(There are a few situations where UB in C could be diagnosed at compile-time, which are probably historical decisions to avoid imposing too much work on early compilers. Where possible, UB that can be caught at compile time, could usefully be turned into constrain violations that must be diagnosed.)And exactly these are the situations that I'd like to be warned from, rather than the compiler making up something without telling.
Les messages affichés proviennent d'usenet.