https://bugs.gentoo.org/686592 In file included from /var/tmp/portage/sci-libs/dcmtk-3.6.3/work/dcmtk-3.6.3/ofstd/include/dcmtk/ofstd/variadic/variant.h:19, from /var/tmp/portage/sci-libs/dcmtk-3.6.3/work/dcmtk-3.6.3/ofstd/include/dcmtk/ofstd/ofvriant.h:379, from /var/tmp/portage/sci-libs/dcmtk-3.6.3/work/dcmtk-3.6.3/ofstd/tests/tvariant.cc:26: /var/tmp/portage/sci-libs/dcmtk-3.6.3/work/dcmtk-3.6.3/ofstd/include/dcmtk/ofstd/variadic/helpers.h:57:32: error: narrowing conversion of ‘-1’ from ‘int’ to ‘long unsigned int’ [-Wnarrowing] 57 | : OFintegral_constant {}; | --- a/ofstd/include/dcmtk/ofstd/variadic/helpers.h +++ b/ofstd/include/dcmtk/ofstd/variadic/helpers.h @@ -14,6 +14,8 @@ #ifndef VARIADIC_HELPERS_H #define VARIADIC_HELPERS_H +#include + #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ #include "dcmtk/ofstd/oftraits.h" @@ -54,7 +56,7 @@ template struct OFvariadic_find_type_t -: OFintegral_constant {}; +: OFintegral_constant::max()> {}; template struct OFvariadic_find_type