<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56482>56482</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            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"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          akukh
      </td>
    </tr>
</table>

<pre>
    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
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1UMuOnDAQ_Bq4WIOMGRg4-LCZUXLNIVKUo7Eb8K6xkd3eaPL1adiMVooS5RTJr1K3q6tqDOYuv4JzhbgyjHfrZ4aBGZisB6bYCrgEw75bXAjlBPH0VjNMB69hQxYmpp1KiSGsm1MILGRM1gCzmFjSYQM221dITHkGMYZYNE8FvxX8qej4r3XAR3EnOIXp5HYNxziLNvh9UiEuVVXRyUwgRh-QrQo1ifN3aiUhUR291r_3_nHYp-t190x9mKPfnzqsm3XEmjIR6kAOnnNCttut3j4tiFva5YuPtOZgxuCwCnEm9IP25y9-6b6d1Vga2ZihGVSJFh3I2-GCwv1_kZJf8ffg_hkX_S5zdPI3i6QyjxVFQ8C518d12mJ4Bo0EbUoZEj3a7tyLcpGcd7weVKdFPY0XPvC2V0Yp6PueD01_KZ0awSVZtB-K9lZaKbgQ_FLXQtQ9b6rL2bRCDLXo1NROuinOHFZlXbUP3sMuozw0jHlOVHQ2YXovUm529gAPfpUp7yjVS35ZykOsPJT-BOdh-YQ">