https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82734
--- Comment #3 from Sylvestre Ledru <sylvestre at debian dot org> --- For people who are getting these error, we fixed it with: static_cast<std::remove_cv<decltype(MediaCacheStream::BLOCK_SIZE)>::type>(INT32_MAX)