Skip to content

Defining a method with a user-defined concept of class template outside its scope gives an error: "out-of-line definition of does not match any declaration in" #56482

@akukh

Description

@akukh

Well, trying to define a method with a user-defined concept of class template outside its scope gives an error:

error: out-of-line definition of '...' does not match any declaration in '...'

GCC, in turn, compiles such code just fine.
https://godbolt.org/z/PTnh6Y4ab

Metadata

Metadata

Assignees

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