https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109224

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This avoids the warning, but we should probably just suppress it in the
testcase instead:

--- a/libstdc++-v3/include/std/generator
+++ b/libstdc++-v3/include/std/generator
@@ -616,6 +616,7 @@
          return __p;
        }
       public:
+       [[__gnu__::__noinline__]]
        void*
        operator new(std::size_t __sz)
        {

Reply via email to