Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 494210 Details for
Bug 626970
www-client/chromium: gcc-7 compile issues
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch as linked in previous answers, renamed to match ebuild
chromium-gcc7.patch (text/plain), 3.71 KB, created by
Søren Dalby Larsen
on 2017-09-12 08:57:54 UTC
(
hide
)
Description:
Patch as linked in previous answers, renamed to match ebuild
Filename:
MIME Type:
Creator:
Søren Dalby Larsen
Created:
2017-09-12 08:57:54 UTC
Size:
3.71 KB
patch
obsolete
>From 489158d82ae86d0b31694141d2d799bd240e14f8 Mon Sep 17 00:00:00 2001 >From: Tomas Popela <tomas.popela@gmail.com> >Date: Wed, 16 Aug 2017 12:22:55 +0000 >Subject: [PATCH] Fix the compilation of LinkedHashSet with GCC > >Currently the compilation fails: > >../../third_party/WebKit/Source/platform/wtf/LinkedHashSet.h: In member function âvoid WTF::LinkedHashSet<Value, HashFunctions, HashTraits, Allocator>::Swap(WTF::LinkedHashSet<Value, HashFunctions, HashTraits, Allocator>&)â: >../../third_party/WebKit/Source/platform/wtf/LinkedHashSet.h:691:3: error: there are no arguments to âSwapAnchorâ that depend on a template parameter, so a declaration of âSwapAnchorâ must be available [-fpermissive] > SwapAnchor(anchor_, other.anchor_); > ^~~~~~~~~~ >../../third_party/WebKit/Source/platform/wtf/LinkedHashSet.h:691:3: note: (if you use â-fpermissiveâ, G++ will accept your code, but allowing the use of an undeclared name is deprecated) > >ninja: build stopped: subcommand failed. > >To fix it move the SwapAnchor and swap declaration before the templates >block (above the first SwapAnchor call). > >Change-Id: Idd902ef00f0165d157dee886406f6be78191f80b >Reviewed-on: https://chromium-review.googlesource.com/616563 >Reviewed-by: Yuta Kitamura <yutak@chromium.org> >Commit-Queue: Yuta Kitamura <yutak@chromium.org> >Cr-Commit-Position: refs/heads/master@{#494751} >--- > >diff --git a/third_party/WebKit/Source/platform/wtf/LinkedHashSet.h b/third_party/WebKit/Source/platform/wtf/LinkedHashSet.h >index 83826b4..2b78d24 100644 >--- a/third_party/WebKit/Source/platform/wtf/LinkedHashSet.h >+++ b/third_party/WebKit/Source/platform/wtf/LinkedHashSet.h >@@ -647,6 +647,46 @@ > friend class LinkedHashSet; > }; > >+inline void SwapAnchor(LinkedHashSetNodeBase& a, LinkedHashSetNodeBase& b) { >+ DCHECK(a.prev_); >+ DCHECK(a.next_); >+ DCHECK(b.prev_); >+ DCHECK(b.next_); >+ swap(a.prev_, b.prev_); >+ swap(a.next_, b.next_); >+ if (b.next_ == &a) { >+ DCHECK_EQ(b.prev_, &a); >+ b.next_ = &b; >+ b.prev_ = &b; >+ } else { >+ b.next_->prev_ = &b; >+ b.prev_->next_ = &b; >+ } >+ if (a.next_ == &b) { >+ DCHECK_EQ(a.prev_, &b); >+ a.next_ = &a; >+ a.prev_ = &a; >+ } else { >+ a.next_->prev_ = &a; >+ a.prev_->next_ = &a; >+ } >+} >+ >+inline void swap(LinkedHashSetNodeBase& a, LinkedHashSetNodeBase& b) { >+ DCHECK_NE(a.next_, &a); >+ DCHECK_NE(b.next_, &b); >+ swap(a.prev_, b.prev_); >+ swap(a.next_, b.next_); >+ if (b.next_) { >+ b.next_->prev_ = &b; >+ b.prev_->next_ = &b; >+ } >+ if (a.next_) { >+ a.next_->prev_ = &a; >+ a.prev_->next_ = &a; >+ } >+} >+ > template <typename T, typename U, typename V, typename Allocator> > inline LinkedHashSet<T, U, V, Allocator>::LinkedHashSet() { > static_assert( >@@ -877,46 +917,6 @@ > erase(find(value)); > } > >-inline void SwapAnchor(LinkedHashSetNodeBase& a, LinkedHashSetNodeBase& b) { >- DCHECK(a.prev_); >- DCHECK(a.next_); >- DCHECK(b.prev_); >- DCHECK(b.next_); >- swap(a.prev_, b.prev_); >- swap(a.next_, b.next_); >- if (b.next_ == &a) { >- DCHECK_EQ(b.prev_, &a); >- b.next_ = &b; >- b.prev_ = &b; >- } else { >- b.next_->prev_ = &b; >- b.prev_->next_ = &b; >- } >- if (a.next_ == &b) { >- DCHECK_EQ(a.prev_, &b); >- a.next_ = &a; >- a.prev_ = &a; >- } else { >- a.next_->prev_ = &a; >- a.prev_->next_ = &a; >- } >-} >- >-inline void swap(LinkedHashSetNodeBase& a, LinkedHashSetNodeBase& b) { >- DCHECK_NE(a.next_, &a); >- DCHECK_NE(b.next_, &b); >- swap(a.prev_, b.prev_); >- swap(a.next_, b.next_); >- if (b.next_) { >- b.next_->prev_ = &b; >- b.prev_->next_ = &b; >- } >- if (a.next_) { >- a.next_->prev_ = &a; >- a.prev_->next_ = &a; >- } >-} >- > template <typename T, typename Allocator> > inline void swap(LinkedHashSetNode<T, Allocator>& a, > LinkedHashSetNode<T, Allocator>& b) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 626970
:
487794
|
487890
|
488478
|
488482
| 494210 |
494212