Re: [PATCH] Avoid undefined behaviour in std::byte operators (LWG 2950)

2019-06-18 Thread Jonathan Wakely
On 18/06/19 12:39 +0100, Jonathan Wakely wrote: * include/c_global/cstddef (std::byte): Perform arithmetic operations in unsigned int to avoid promotion (LWG 2950). Tested x86_64-linux, committed to trunk. I don't see any great need to backport this, because I don't think the c

[PATCH] Avoid undefined behaviour in std::byte operators (LWG 2950)

2019-06-18 Thread Jonathan Wakely
* include/c_global/cstddef (std::byte): Perform arithmetic operations in unsigned int to avoid promotion (LWG 2950). Tested x86_64-linux, committed to trunk. commit bfa356b2a9353d1f0b7ccc38f3787d5a4f3044ae Author: redi Date: Tue Jun 18 11:39:43 2019 + Avoid undefined