public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
From: Patrick Palka <ppalka@redhat.com>
To: Patrick Palka <ppalka@redhat.com>
Cc: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org
Subject: Re: [committed] libstdc++: Fix memory issue in ranges::lexicographical_compare testcase
Date: Thu, 29 Oct 2020 10:58:50 -0400 (EDT)	[thread overview]
Message-ID: <9fa7a27-d6ce-ab36-d348-b7aa4e4aa12@idea> (raw)
In-Reply-To: <20201029141535.1084015-1-ppalka@redhat.com>

On Thu, 29 Oct 2020, Patrick Palka wrote:

> libstdc++-v3/ChangeLog:
> 
> 	* testsuite/25_algorithms/lexicographical_compare/constrained.cc:
> 	(test03): Fix initializing the vector vy with the array y of size 4.

Now committed to the 10 branch as well.

> ---
>  .../25_algorithms/lexicographical_compare/constrained.cc        | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc b/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc
> index b82c872bbbb..2019bbc75e4 100644
> --- a/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc
> +++ b/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/constrained.cc
> @@ -136,7 +136,7 @@ test03()
>        VERIFY( !ranges::lexicographical_compare(cy.begin(), cy.end(),
>  					       cz.begin(), cz.end()) );
>  
> -      std::vector<int> vx(x, x+5), vy(y, y+5);
> +      std::vector<int> vx(x, x+5), vy(y, y+4);
>        VERIFY( ranges::lexicographical_compare(vx, vy) );
>        VERIFY( !ranges::lexicographical_compare(vx, vy, ranges::greater{}) );
>        VERIFY( !ranges::lexicographical_compare(vy, vx) );
> -- 
> 2.29.0.rc0
> 
> 


      reply	other threads:[~2020-10-29 14:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-29 14:15 Patrick Palka
2020-10-29 14:58 ` Patrick Palka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9fa7a27-d6ce-ab36-d348-b7aa4e4aa12@idea \
    --to=ppalka@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=libstdc++@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).