Hacker News new | ask | show | jobs
by bluGill 50 days ago
The standard doesn't require compilers find all such cases. The standard allows it, but doesn't require it. There are many known cases where the compiler cannot find a case (at least not in a reasonable amount of time)
1 comments

The consequence of not being required in the standard is that compilers may not implement it and if they do, they will likely have different implementations/functionality
The consequence of being required is the standard is limited to exactly what we are sure everybody can do today. If there are advances in proving C++ code the new advances cannot be used to tell you about more bugs.
My point was that contracts as defined in the standard today aren't evaluated in this manner.