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

    <tr>
        <th>Summary</th>
        <td>
            Clang allows global namespace qualification before template specialization
        </td>
    </tr>

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

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

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

<pre>
    The following C++ code compiles successfully in Clang (trunk):

```cpp
template<typename>
struct X;

template<>
struct ::X<int> {};
```

I am unsure what the C++ standard has to say about this, but gcc fails with the error `global qualification of class name is invalid before '{' token`. If this is incorrect usage, there should at least be a compiler warning.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUk1vozAQ_TXmMmoEQwLkwKFJG6n3PfQ6mAG8NTbrsRtlf_2KfGyrSghLnpn35j0_EjGjY27V7qB2LxmlOPnQfpi5rKqs8_2l_TUxDN5afzZuhKPCg8IDaN8zaD8vxrKAJK1ZZEjWXsA4OFpyIyhsYkjuQ-Felc8qf1H541_lt08vy-0m8rxYiqzKY7ws7GhmVb7eahJD0hHeVXn4DvJt5GfrSlc-v6vyaFxU5Suo-qDqly-AB_93vDegGZKTFBjOE0WIE__XK5FcT6GHiQSiB6ELUOfT2mVE4RG6FGHUGgYyVuBs4nQF4BB8AFXlo_UdWfiTyJrBaIrGO_ADaEsisAoGI2DcJ1nTQ8eDDwwK63V1rCH6D3aqyjfwNlw5b93ah8A6QhIaeV0jThwYZPLJ9kARLJNE6Bjo8VwBzhScceMm69uy35d7yrgtatxV2JRFk01tOWDf07bGDqu-2tZFXjV1UxW7qq80dpSZFnPc5vu8Ksqi2NUbrBGrJtc7bnTXlXu1zXkmYzfWfs4bH8bMiCRui7zeNZhZ6tjKNXWIek2LQlwDGNp14KlLo6htbo1E-YKIJlpub-GiNZECd1dX-2QhzT_8vdv4iArIwtqQNX-v5SwF204xLrIGBk8KT6OJU-o22s8KTyvx_Xhagv_NOio8XYWIwtNdy2eL_wIAAP__8akK3A">