rogfer01 added inline comments.
================
Comment at: lib/Sema/SemaTemplate.cpp:7021
+ // C++ [temp]p6:
+ // A template, a template explicit specialization, and a class template
+ // partial specialization shall not have C linkage.
----------------
Can you add a test for a partial specialization? Your test for the class case
only includes an explicit specialization.
```lang=cpp
template <typename T>
struct A { };
extern "C" {
template <typename T> // I'd expect a diagnostic around here
struct A<T*>
{
};
}
```
https://reviews.llvm.org/D41179
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits