Paul Eggert wrote: > > # if (!defined static_assert \ > > - && __STDC_VERSION__ < 202311 && __cpp_static_assert < 201411) > > + && __STDC_VERSION__ < 202311 \ > > + && __cpp_static_assert < 201411 && __GNUG__ < 6) > > # define static_assert _Static_assert /* C11 requires this #define. */ > > # endif > > Thanks for the fix. Should I also install the attached patch, for > consistency?
Yes, please. Since the only purpose of the #include <assert.h> #undef/**/assert here is to get 'static_assert' working, and it works already in g++ ≥ 6, the patch is correct. Bruno