Issue 56066
Summary extern template - clang produce error/msvc ok
Labels new issue
Assignees
Reporter marakew
    ```
#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.

```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to