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

Issue 4430051: [pph] Initialize fields in default ctor for _Hashtable_iterator (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by Diego Novillo
Modified:
13 years ago
Reviewers:
CC:
davidxl, libstdc++_gcc.gnu.org, gcc-patches_gcc.gnu.org
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M libstdc++-v3/ChangeLog.google-main View 1 chunk +8 lines, -0 lines 0 comments Download
M libstdc++-v3/include/backward/hashtable.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 2
Diego Novillo
I am committing this patch for David Li on google/main. The patch adds explicit initialization ...
13 years ago (2011-04-16 20:30:27 UTC) #1
Diego Novillo
13 years ago (2011-04-16 20:42:05 UTC) #2
Geez, working on too many different branches.  This is *not* a pph patch.

On Sat, Apr 16, 2011 at 16:30, Diego Novillo <dnovillo@google.com> wrote:
> I am committing this patch for David Li on google/main.
>
> The patch adds explicit initialization to the fields of
> _Hashtable_iterator in its default constructor.  David, could you
> describe why this change was needed?  Will you be submitting for
> trunk?
>
> Tested on x86_64.  Committed to google/main.
>
>
> Diego.
>
> 2011-04-15  Xinliang David Li  <davidxl@google.com>
>
>        Google ref 43787.
>
>        * include/backward/hashtable.h
>        (_Hashtable_iterator::_Hashtable_iterator): Initialize _M_cur and
>        _M_ht in default constructor.
>
> diff --git a/libstdc++-v3/include/backward/hashtable.h
b/libstdc++-v3/include/backward/hashtable.h
> index 0bcaec4..c3eefcc 100644
> --- a/libstdc++-v3/include/backward/hashtable.h
> +++ b/libstdc++-v3/include/backward/hashtable.h
> @@ -126,7 +126,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
>       _Hashtable_iterator(_Node* __n, _Hashtable* __tab)
>       : _M_cur(__n), _M_ht(__tab) { }
>
> -      _Hashtable_iterator() { }
> +      _Hashtable_iterator()
> +      : _M_cur(0), _M_ht(0) { }
>
>       reference
>       operator*() const
>
> --
> This patch is available for review at http://codereview.appspot.com/4430051
>
Sign in to reply to this message.

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