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

    <tr>
        <th>Summary</th>
        <td>
            [Clang] Accepts invalid `constexpr` in explicit instantiation of variable template
        </td>
    </tr>

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

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

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

<pre>
    In the following code, the `constexpr` specifier should not be allowed in the explicit instantiation. It is rejected by GCC, but accepted by Clang.
```c++
template <class>
inline constexpr int i{};

template constexpr int i<int>;
```
See Compiler Explorer: https://godbolt.org/z/jzvY3Mqxc
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0ks1u2zAMx5-GvhANZMmOk4MPaVIPPfS0XXaUZdpmoUieJGdpn36wk3ZAhwEEDFPkn18_HSMPjqiG8hHKU6bnNPpQv-iBXNI_AtHo50hZ67u3-tlhGgl7b63_zW5A4zsCeVy9sBXGu5joOgXYCowTGe6ZAsbRz7ZD5xO2hHpJpg75JkbXybLhhOxi0i6xTuzdBp8TcsRAr2QSddi-4bfjcanVzgm1MTTd3Uer3bABcQJxgK24mQH5uNjqTXSerE6EoI7G6hhBPd1e2Fl2hJ99I7uEDNUjVCdQ9_QvIl-D1ZFdWhQ_4z-auP1-J8KjP09sKeDTdbI-UAB1wDGlKYI6gGxANoPvWm_TxocBZPMOsnl9v_xUL7-uJutq1e3VXmdU55WsdrtClHk21pLMthRV35m9onJPpcqLbUGi131XaaMzrqWQRS6EzMuiUvlmp0wlaFuJvm_7QndQCDprthtrL-eldsYxzlTnudhVKrO6JRtXNqQ0y6JBygWTUC8JD-08RCiE5ZjiX4nEya5AraeB8oSH9V4R2V205e4fVtj9hwP0PV50YN1awo8TZHOw9ZftcRrndmP8GWSzNHL_PEzBLwSBbNbBIsjmPtulln8CAAD__zim9oE">