[Bug libstdc++/86280] experimental/memory_resource overflows 32 bit type
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 22 13:05:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86280
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Jun 22 13:05:20 2018
New Revision: 261888
URL: https://gcc.gnu.org/viewcvs?rev=261888&root=gcc&view=rev
Log:
PR libstdc++/86280 fix undefined left shift on 32-bit targets
PR libstdc++/86280
* include/experimental/memory_resource
(__resource_adaptor_common::_AlignMgr::_M_token_size): Use type large
enough for result of left shift.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/experimental/memory_resource
More information about the Gcc-bugs
mailing list