https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86190
--- Comment #2 from Danil Ilinykh <woodroof at gmail dot com> --- I explicity said to compiler, what I want to convert int to size_t. And it still produces warning. If I replace static_cast to variable with the same initialization, warning will be gone.