[Bug libstdc++/86280] New: experimental/memory_resource overflows 32 bit type
dje at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 22 12:38:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86280
Bug ID: 86280
Summary: experimental/memory_resource overflows 32 bit type
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: dje at gcc dot gnu.org
Target Milestone: ---
FAIL: experimental/memory_resource/new_delete_resource.cc (test for excess
error
s)
Excess errors:
/tmp/GCC/powerpc-ibm-aix7.2.0.0/libstdc++-v3/include/experimental/memory_resource:329:
warning: left shift count >= width of type [-Wshift-count-overflow]
<jwakely> ah yes, this obviously isn't good for 32-bit:
if (_M_align <= (1ul << (sizeof(int) * __CHAR_BIT__)))
s/1ul/1ull/ should do it!
More information about the Gcc-bugs
mailing list