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

    <tr>
        <th>Summary</th>
        <td>
            extern template - clang produce error/msvc ok
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    ```
#include <string>
#include <vector>

extern template std::vector<std::string>;

int main(){return 0;}
```

```
D:\LLVM-14.0.5-win64\bin>clang-cl.exe /std:c++20 nothing.cpp
nothing.cpp(5,17): error: declaration does not declare anything
extern template std::vector<std::string>;
                ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytks1u6yAQhZ8Gb1AsDIHYCy_yu2q3d09g6tASHAFO2rfv2ElvqijLWkc2zIw-zozZ9_arJYrdxDaELQkXLhg_WKBErFOOLnREbJ8lz2ByH-_J6Q2fGWKgGY4nrzPQlC0RS9RP9fp_5A4Xq98IFzI9ahcIrwlvyGIVIQ_IZGPdYnMrfbD9LLgZz5Hrl5d_r7NqXrJSzi4uqDnG9ogXW-N16GbGl_CJHfHd1ZohfIXijIY-H9BiaU6nK_F3gNeS8HW1GD2KJYUYx_aW1AJio86uD9T2kEbKLQhUh6-J8AfDog8PkVuy-AtN9OraEO0gADYDtnw66MK2wjai0UV22UP72NGMTjOmp9jbwcBtSnx3TGdD-49iiL495HxKY5d8h-pcPgz70vRH3Hh__vnMEPGOY8GtS2mAhAupmFLFoVWav0kjNUOputJSNqbSjKvGGgEWCq_34FNLJP5YHuBCJwSuidwUruWMc6YqVUkpRV1a1og3sGwBVa1VXZM5A7yQvhx9lH3sithOlvZDlzDpXcrpntQpuS4ATMchXw_50Mf2iJfiAy7FdHQ7Wf8GOOwFGw">