Opened 8 days ago
Closed 5 days ago
#14976 closed defect (fixed)
false positive: uninitvar (std::size() used on array)
| Reported by: | kidkat | Owned by: | noone |
|---|---|---|---|
| Priority: | Normal | Milestone: | 2.22 |
| Component: | False positive | Version: | |
| Keywords: | uninitvar c++17 | Cc: |
Description
#include <iterator> void f() { const char arr[5]; auto s = std::size(arr); }
scratch_4.cpp:6:24: error: Uninitialized variable: arr [uninitvar]
auto s = std::size(arr);
^
Change History (1)
comment:1 by , 5 days ago
| Milestone: | → 2.22 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed by https://github.com/cppcheck-opensource/cppcheck/pull/8795