On Thu, Nov 23, 2023 at 10:54:56AM +0000, Jonathan Wakely wrote:
> Jakub noted in the PR that this test fails for -std=c++98.
> 
> Tested x86_64-linux.
> 
> OK for trunk?
> 
> -- >8 --
> 
> The _M_realloc_insert member does not have the trivial relocation
> optimization for C++98, which seems to be why the _M_end_of_storage
> member does not get optimized away. Make this test unsupported for
> C++98.
> 
> gcc/testsuite/ChangeLog:
> 
>       PR libstdc++/110879
>       * g++.dg/opt/pr110879.C: Require C++11 or later.

Ok, thanks.

> diff --git a/gcc/testsuite/g++.dg/opt/pr110879.C 
> b/gcc/testsuite/g++.dg/opt/pr110879.C
> index 7f0a0a80b8a..57556605a51 100644
> --- a/gcc/testsuite/g++.dg/opt/pr110879.C
> +++ b/gcc/testsuite/g++.dg/opt/pr110879.C
> @@ -1,4 +1,4 @@
> -// { dg-do compile }
> +// { dg-do compile { target c++11 } }
>  // { dg-options "-O3 -fdump-tree-optimized" }
>  
>  #include <vector>
> -- 
> 2.42.0

        Jakub

Reply via email to