https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69152
Bug ID: 69152
Summary: _GLIBCXX_BITSET_BITS_PER_WORD is wrong for x32
Product: gcc
Version: 5.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
Target: x32
The size of word on x32 is 8 byte and the size of long is 4 byte.
include/std/bitset has
#define _GLIBCXX_BITSET_BITS_PER_WORD (__CHAR_BIT__ * __SIZEOF_LONG__)
which is incorrect for x32.