Skip to content

clang 22.1.0 dislikes the use of __COUNTER__ with cpp standard 23 #479

@bgemmill

Description

@bgemmill

When compiling tests with boost test and clang 22.1.0 from the llvm apt repository, clang emits a lot of Wc2y-extensions warnings around boost::test's use of the __COUNTER__ macro.

While I've added -Wno-c2y-extensions to my project to silence this, can the fallback of LINE be used if the c++ standard is set at 23?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions