diff --git a/openmp/libomptarget/include/dlwrap.h b/openmp/libomptarget/include/dlwrap.h --- a/openmp/libomptarget/include/dlwrap.h +++ b/openmp/libomptarget/include/dlwrap.h @@ -158,6 +158,7 @@ return reinterpret_cast(P); \ } \ }; \ + static_assert(ARITY == trait::nargs, "Arity Error"); \ } #define DLWRAP_IMPL(SYMBOL, ARITY) \