================ @@ -1007,3 +1007,11 @@ template <typename T> void f() { x[T{}] = 3; } } // namespace gh127776_false_positive + +namespace gh132931_false_positive { +using T = const int; +void valid(int i) { + const int arr0[] = {1, 2, 3}; + T arr1[] = {1, 2, 3}; ---------------- carlosgalvezp wrote:
Ah sorry I see now `T` is `const int` :man_facepalming: https://github.com/llvm/llvm-project/pull/133018 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits