]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid undefined behaviour in std::byte operators (LWG 2950)
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2019 11:39:43 +0000 (11:39 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2019 11:39:43 +0000 (11:39 +0000)
commitbfa356b2a9353d1f0b7ccc38f3787d5a4f3044ae
tree597b8d18820d74dc4f718ec184bdf2ab2798d236
parent042371f341a956de8c76557df700ebdc1af9ab4f
Avoid undefined behaviour in std::byte operators (LWG 2950)

* include/c_global/cstddef (std::byte): Perform arithmetic operations
in unsigned int to avoid promotion (LWG 2950).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272415 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/c_global/cstddef