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

Issue 4439085: [google] Remove unqualified lookups which break clang

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

Description

commit 99835abc5d2a7fd3ae0950c8a16fd6d223d408c9 Author: Ollie Wild <aaw@google.com> Date: Fri Apr 29 13:03:57 2011 -0400 Remove unqualified lookups into dependent template base classes from STL headers. These break clang. See http://clang.llvm.org/compatibility.html#dep_lookup_bases. To be applied to google/main. Would also like permissiont to submit to trunk. M libstdc++-v3/include/ext/sso_string_base.h M libstdc++-v3/include/ext/vstring.h M libstdc++-v3/include/ext/vstring.tcc Tested: Tested via buildit bootstrap and tests. ChangeLog: 2011-05-02 Ollie Wild <aaw@google.com> * include/ext/sso_string_base.h (__sso_string_base<>::_M_construct): Fix unqualified lookup. (__sso_string_base<>::_M_construct): Likewise. (__sso_string_base<>::_M_construct): Likewise. (__sso_string_base<>::_M_assign): Likewise. (__sso_string_base<>::_M_reserve): Likewise. (__sso_string_base<>::_M_mutate): Likewise. (__sso_string_base<>::_M_erase): Likewise. * include/ext/vstring.h (__versa_string<>::replace): Likewise. (__versa_string<>::compare): Likewise. * include/ext/vstring.tcc (__versa_string<>::compare): Likewise. (__versa_string<>::compare): Likewise. (__versa_string<>::compare): Likewise. (__versa_string<>::compare): Likewise. (__versa_string<>::compare): Likewise.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -19 lines) Patch
M libstdc++-v3/include/ext/sso_string_base.h View 7 chunks +11 lines, -12 lines 0 comments Download
M libstdc++-v3/include/ext/vstring.h View 2 chunks +2 lines, -2 lines 0 comments Download
M libstdc++-v3/include/ext/vstring.tcc View 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 6
Ollie Wild
commit 99835abc5d2a7fd3ae0950c8a16fd6d223d408c9 Author: Ollie Wild <aaw@google.com> Date: Fri Apr 29 13:03:57 2011 -0400 Remove unqualified ...
13 years ago (2011-05-02 14:34:51 UTC) #1
Diego Novillo
On Mon, May 2, 2011 at 10:34, Ollie Wild <aaw@google.com> wrote: > 2011-05-02 Ollie Wild ...
13 years ago (2011-05-02 14:37:14 UTC) #2
Ollie Wild
Submitted to google/main. Adding libstdc++@gcc.gnu.org for trunk approval. Ollie On Mon, May 2, 2011 at ...
13 years ago (2011-05-02 14:52:50 UTC) #3
paolo.carlini_oracle.com
On 05/02/2011 04:52 PM, Ollie Wild wrote: > Submitted to google/main. > > Adding libstdc++@gcc.gnu.org ...
13 years ago (2011-05-02 14:58:40 UTC) #4
paolo.carlini_oracle.com
On 05/02/2011 04:58 PM, Paolo Carlini wrote: > Why nobody noticed so far? Is there ...
13 years ago (2011-05-02 15:20:33 UTC) #5
paolo.carlini_oracle.com
13 years ago (2011-05-02 15:32:54 UTC) #6
On 05/02/2011 05:19 PM, Paolo Carlini wrote:
> template<typename T>
>   struct base
>   {
>     void bar(T) { }
>   };
>
> template<typename T>
>   struct derived
>   : base<T>
>   {
>     void
>     foo(T t)
>     { bar(t); }
>   };
>
> template class derived<int>;
Gosh, c++/24163

Paolo.

Sign in to reply to this message.

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