Skip to content

Implementing friend operator with two exclusive requires clauses but same name of requirement causes "error: redefinition of 'operator<<'" #89909

@gsamatt

Description

@gsamatt

This does not compile with clang 18 but it does with clang 17:
https://godbolt.org/z/orMfTfxMd

This would compile with both compiler as it uses a different name for the requirement:
https://godbolt.org/z/Mjxq54abb

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"conceptsC++20 conceptsconfirmedVerified by a second party

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions