Skip to content

<regex> syntax_option_type is not a proper bitmask #35315

@miyuki

Description

@miyuki
Bugzilla Link 35967
Resolution FIXED
Resolved on Mar 28, 2019 10:32
Version 6.0
OS Linux
CC @hubert-reinterpretcast,@mclow

Extended Description

According to [re.synopt]:
"The type syntax_option_type is an implementation-defined bitmask type"

[bitmask.types] defines some requirements for such types, specifically:
"Here, the names C0, C1, etc. represent bitmask elements for this particular bitmask type. All such elements have distinct, nonzero values"

Contrarily to this requirement, in libc++ std::regex_constants::ECMAScript is 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillalibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions