On Fri, 11 Feb 2022, Jonathan Wakely via Gcc-patches wrote: > diff --git > a/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc > b/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc > index c81344a20e4..25e5ce63b58 100644 > --- a/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc > +++ b/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc > @@ -281,10 +281,13 @@ test07() > std::pmr::unsynchronized_pool_resource upr(&cr); > try > { > +#pragma GCC diagnostic push > +#pragma GCC diagnostic ignored "-Walloc-size-larger-than=" > // Try to allocate a ridiculous size (and use a large extended alignment > // so that careful_resource::do_allocate can distinguish this allocation > // from any required for the pool resource's internal data structures): > void* p = upr.allocate(std::size_t(-2), 1024); > +#pragma GCC distinguish pop
Isn't it a bug that you (presumably) didn't get an error for that misspelling? Or a diagnostic to distinguish it? 8-} brgds, H-P