← Back to context Comment by ryao 2 days ago We can use UB to refer to both. :) 3 comments ryao Reply hermitdev 2 days ago > 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. trealira 2 days ago Maybe, but we were talking about "undefined behavior," not "UB," so the point is moot.
hermitdev 2 days ago > 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.
trealira 2 days ago Maybe, but we were talking about "undefined behavior," not "UB," so the point is moot.
> 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.
Maybe, but we were talking about "undefined behavior," not "UB," so the point is moot.