2 ms·
This is a semantic quagmire, and the threads on what undefined behaviour is are interminable. But just note this time around that correctness is not the same a
by JdeBP 2mo ago
This is a semantic quagmire, and the threads on what undefined behaviour is are interminable. But just note this time around that correctness is not the same as conformity.
- pjmlp 2mo agoSemantics matter to compiler vendors though, which is why C++ 26 now introduced erroneous behaviour as an attempt to fix UB.
- wat10000 2mo agoWhat's the difference? There's no such thing as "incorrect C++, but still C++." A program is either correct/valid/conforming C++, or it's not. We can reasonably describe "not" as "incorrect," or "invalid," "nonconforming," or just "not C++."