| Issue |
165239
|
| Summary |
`-Wuninitialized` fails to emit a warning for uninitialized fixed-size local arrays
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
anonymous-x9v2b7kq
|
`c` is uninitialized and used in the main function.
Options: `-Wall -Wextra -Wuninitialized -Wconditional-uninitialized -O2`
Link: https://godbolt.org/z/heG6Kcxda
Code:
```
int b[24] = {0};
int main() {
int c[24];
for (int d = 0; d < 24; ++d)
b[d] = c[d];
__builtin_printf("%d\n", b[0]);
return 0;
}
```
This might be related to [#66448](https://github.com/llvm/llvm-project/issues/66448)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs