================
@@ -151,3 +151,25 @@ void b(void) {
foo();
}
} // no-crash
+
+float GH49330(int nValues, int x) {
+ int sqr = nValues * nValues;
+ float array[sqr];
+
+ for(unsigned long i = 0; i < sqr; ++i) {
+ array[i] = 0;
+ }
+
+ float sum = 0;
+ for (int i = 0; i < nValues; i++){
+ for (int j = 0; j < nValues; j++) {
+ sum += x * array[i + nValues * j]; // no-warning
----------------
steakhal wrote:
Imagine we have like 8 variables and 3 loops, out of which 2 are nested. What
warning was a FP - thus now missing? _[Where's
Wally?](https://en.wikipedia.org/wiki/Where%27s_Wally%3F)_
https://github.com/llvm/llvm-project/pull/241058
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits