C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] Remove infinite loop UB
From: FrankHB (frankhb1989_at_[hidden])
Date: 2020-05-28 05:31:51


This is technically not a case of UB. The definition in [defns.undefined]
have no normative wording indicating that missing explicit definitions of
specific behavior necessarily leads to UB, as ISO C does for "undefined
behavior" in the normative text in Clause 4. Moreover, the "may assume"
wording of [intro.progress] does make some guarantees of the required
behavior of conforming implementations upon the meaning of the word "may"
defined in ISO/IEC directive, part 2. That is, it is essentially
unspecified, rather than undefined. Conforming programs still can not rely
on the assumptions about the infinite loop implemented in the object code
in this sense, though; but that does not make all other part of the program
unpredictable or unportable as in the case of UB.



STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups