| Issue |
107589
|
| Summary |
False positive cppcoreguidelines-pro-type-member-init for array and std::fill
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
chrchr-github
|
Seems like a regression in clang-19:
~~~c++
#include <algorithm>
#include <iterator>
struct S {
char a[100];
S() {
std::fill(std::begin(a), std::end(a), '\0');
}
};
~~~
~~~
<source>:6:2: warning: constructor does not initialize these fields: a [cppcoreguidelines-pro-type-member-init]
5 | char a[100];
|
| {}
6 | S() {
| ^
~~~
https://godbolt.org/z/6WfzWGYr9
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs