The patch changes the definition of __regex_word to 0x8000 for AIX because the current definition 0x80 clashes with ctype_base::print (_ISPRINT is defined as 0x80 in AIX ctype.h).
Details
Details
- Reviewers
ldionne Mordante philnik daltenty hubert.reinterpretcast - Group Reviewers
Restricted Project - Commits
- rGd29c9477320b: [libc++][AIX] Correct the definition of __regex_word for AIX
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for the fixes! LGTM for libc++, please wait for approval of one of the AIX maintainers.
Comment Actions
LGTM; thanks! Can we have a test with a static_assert that checks the bits are disjoint (check union of all flags has the right number of 1s)?
Comment Actions
Can we have a test with a static_assert that checks the bits are disjoint (check union of all flags has the right number of 1s)?
Thanks for catching this, @hubert.reinterpretcast! There is actually an static_assert that checks if regex_word overlaps other bits but it is disabled for AIX. This update enables it.