Comment by ryao Comment by ryao a day ago 3 replies Copy Link View on Hacker News We can use UB to refer to both. :)
Copy Link hermitdev a day ago Next Collapse Comment - > We can use UB to refer to both. :)You can, but in the context of the standard, you'd be wrong to do so. Undefined behavior and unspecified behavior have specific, different, meanings in context of the C and C++ standards.Conflate them at your own peril. Reply View | 0 replies
Copy Link trealira a day ago Prev Collapse Comment - Maybe, but we were talking about "undefined behavior," not "UB," so the point is moot. Reply View | 1 reply Copy Link [removed] a day ago Parent Collapse Comment - [deleted] Reply View | 0 replies
> We can use UB to refer to both. :)
You can, but in the context of the standard, you'd be wrong to do so. Undefined behavior and unspecified behavior have specific, different, meanings in context of the C and C++ standards.
Conflate them at your own peril.