[clang] [APINotes] Avoid duplicate attributes when fields instantiate class templates (PR #173386)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 23 07:25:31 PST 2025
================
@@ -8,3 +8,12 @@ struct Box {
using FloatBox = Box<float>;
using IntBox = Box<int>;
+
+template <typename T>
+struct MoveOnly {
----------------
Xazax-hun wrote:
Could you add a test case with explicit template specialization?
```
template <>
struct MoveOnly<float> {
double value;
};
```
What is the behavior in this case?
https://github.com/llvm/llvm-project/pull/173386
More information about the cfe-commits
mailing list