[Bug c++/86190] -Wsign-conversion ignores explicit conversion in some cases

woodroof at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jun 18 10:32:00 GMT 2018


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.


More information about the Gcc-bugs mailing list