================
@@ -354,3 +354,25 @@ class C {
T t2; // ok
};
}
+
+namespace warn_unused_template {
+struct [[gnu::warn_unused]] WarnUnusedType {};
+
+template <typename T>
----------------
nickdesaulniers wrote:
ah, good point. In fixing the false-positive, I _regressed_ the true positive
case. Added exactly the case you described, and fixed that regression in
fac498d92ad9a132d47dac6d75bd0204aef96e0b.
https://github.com/llvm/llvm-project/pull/237374
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits