Skip to content

Compilation Error using C++ Concepts #60508

@ryanolson

Description

@ryanolson

Full reproducer:
https://godbolt.org/z/oh1v7h64G

Compiles with gcc, but not clang.

This could also be user error and gcc should be throwing an error; however, I feel like the code is correct since clang doesn't fail the static_assert, but fails when applied to the lambda auto arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"conceptsC++20 concepts

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions