[clang-tools-extra] [clang-tidy][NFC] Add test case confirming #190944 is fixed (PR #192707)

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 17 18:51:12 PDT 2026


================
@@ -366,3 +366,15 @@ typename T::R Foo::PartiallySpecializedDataMember<T, typename T::V> = false;
 // CHECK-FIXES-20: T::R Foo::PartiallySpecializedDataMember<T, typename T::V> = false;
 
 #endif // __cplusplus >= 201402L
+
+struct Int {
+  using R = int;
+};
+
+template <typename T>
+struct BaseClass {};
+
+template <typename T>
+struct SubClass : BaseClass</* This used to be a false positive. */ typename T::R> {};
----------------
localspook wrote:

```suggestion
struct SubClass : BaseClass<typename T::R> {};
```

https://github.com/llvm/llvm-project/pull/192707


More information about the cfe-commits mailing list