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

    <tr>
        <th>Summary</th>
        <td>
            Clang rejects valid out of class definition of a nontemplate constructor of a class template 
        </td>
    </tr>

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

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

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

<pre>
    The following valid program is rejected by clang.[Demo](https://godbolt.org/z/P8f5MKz3s)
```
struct TestValue
{

};

template<TestValue... Values>
struct TestCompiler
{
    TestCompiler();
};

template<TestValue... Values>
TestCompiler<Values...>::TestCompiler()
{
    
}
```
This is well-formed as this is the correct way to provide an out of class definition for the nontemplate ctor. The error says:

```
error: nested name specifier 'TestCompiler<Values...>::' for declaration does not refer into a class, class template or class template partial specialization
TestCompiler<Values...>::TestCompiler()
``` 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylVEGvmzAM_jXhEj1EA7TlwKGv3btMk3aodjfE0EwhQUlo1f76GUr71r43TdogKDh27M_57FRWnsv9AXljtbYnZVp-BK0k751tHXRcee7wJ9YBJa_OvNZg2pjlrzvsLMt3TKwPIfSepRsm3mi0VlZWh9i6lqQLfd_XTf7t6yX1TBQs2bFkw5bJPCbRBzfUge_Rhx-gB5yNVq_zzyzuWPqwErDrNQRk6fa-NY5jPv0QoC8fvG9t1yuN7ikAp-dBLdYj1Hu0f4384DPdXrVkNxrQcaWbT4J-RPYO4rOz2x-IIBon1Pqlsa4jmsDzMC8HYra2zhF__ARnHuxI7FFJ5GC4HQK3zcip91xio4wKyhqqBTftNNbcUuV1sC7mY6Wgc6T3cJ5I_52iR2iTHZlwQ2kSLAMdct9jrRqFjjOx-usBkc0ERiJhdDCBkxY9IQtUlg25UYZygmsOTGznZO6wafPTSg8uKNBXJFTql8nt_zJ2S51HWC6Wy1wUi1SISJapLNICoqCCxnI7ds_cT35utD-RQGvwyIA111qmnCblU2LR4HT51IwqHIYqrm1HgtbH2_RCRTBiIFF5P9aseMvXIk-iQ5mBACGbCrGWNYgE6JUiW2ZVBSuaIg0Val_SHUD9H6lSJEIskqRIsjxf5HGGuEgQi1WRyyRrMpYl2IHS8Rh4vBYiV04YqqH1pNTKB_-upJRUaxBv_mEIB-tKBwbAWNtHE-ByQvsLEap-WQ">