Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7195)

Issue 5975063: [google] Fix PR52822 in google's gcc-4.6 branch

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by Jeffrey Yasskin (google)
Modified:
12 years ago
Reviewers:
Diego Novillo
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -3 lines) Patch
M libstdc++-v3/include/bits/stl_algo.h View 1 chunk +2 lines, -1 line 0 comments Download
M libstdc++-v3/testsuite/25_algorithms/stable_partition/moveable.cc View 4 chunks +25 lines, -2 lines 0 comments Download
A libstdc++-v3/testsuite/25_algorithms/stable_partition/pr52822.cc View 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Jeffrey Yasskin (google)
I'll send the patches for trunk, gcc-4_7-branch, and gcc-4_6-branch in a separate thread later today ...
12 years ago (2012-04-02 22:25:02 UTC) #1
Jeffrey Yasskin (google)
My original test case passes with this change. On Mon, Apr 2, 2012 at 3:25 ...
12 years ago (2012-04-03 00:08:48 UTC) #2
Diego Novillo
12 years ago (2012-04-03 13:13:08 UTC) #3
On 4/2/12 6:25 PM, Jeffrey Yasskin wrote:

> 2012-04-02   Jeffrey Yasskin<jyasskin@google.com>
>
> 	* libstdc++-v3/include/bits/stl_algo.h (__stable_partition_adaptive):
>          Avoid move-assigning an object to itself by explicitly testing
>          for identity.
> 	* libstdc++-v3/testsuite/25_algorithms/stable_partition/pr52822.cc:
>          Test vectors, which have a destructive self-move-assignment.
> 	* libstdc++-v3/testsuite/25_algorithms/stable_partition/moveable.cc (test02):
>          Test with rvalstruct, which explicitly checks self-move-assignment.

This is OK for google/gcc-4_6, if trunk review requests changes, you can 
backport them later.


Diego.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b