In file included from test.cpp:2:
md5.h: In instantiation of ‘static constexpr char ConstexprHashes::buffer_builder<n, 56>::make_value(const char*) [with long unsigned int n = 32]’:
md5.h:170:68: required from ‘constexpr ConstexprHashes::buffer_type ConstexprHashes::make_buffer_helper(const char (&)[n], ConstexprHashes::index_tuple<indexes ...>) [with long unsigned int n = 33; long unsigned int ...indexes = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63}; ConstexprHashes::buffer_type = ConstexprHashes::constexpr_array<char, 64>]’
md5.h:177:30: required from ‘constexpr ConstexprHashes::buffer_type ConstexprHashes::make_buffer(const char (&)[n]) [with long unsigned int n = 33; ConstexprHashes::buffer_type = ConstexprHashes::constexpr_array<char, 64>]’
md5.h:255:47: required from ‘constexpr ConstexprHashes::md5_type ConstexprHashes::md5(const char (&)[n]) [with long unsigned int n = 33; ConstexprHashes::md5_type = std::array<char, 16>]’
test.cpp:6:68: required from here
md5.h:148:18: warning: overflow in conversion from ‘long unsigned int’ to ‘char’ changes value from ‘256’ to ‘'\000'’ [-Woverflow]
return n << 3;
~~^~~~ |