diff options
Diffstat (limited to 'gcc-9-fix.patch')
-rw-r--r-- | gcc-9-fix.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc-9-fix.patch b/gcc-9-fix.patch new file mode 100644 index 0000000..264922a --- /dev/null +++ b/gcc-9-fix.patch @@ -0,0 +1,22 @@ +Bug: https://bugs.gentoo.org/686982 + +TabStripModelChange has a defaulted default constructor and a const data member +without a user-defined default constructor. This leads to a bug: + +error: defaulting this default constructor would delete it after +its first declaration + +We declare the data member as non-const instead. + +--- a/chrome/browser/ui/tabs/tab_strip_model_observer.h ++++ b/chrome/browser/ui/tabs/tab_strip_model_observer.h +@@ -103,7 +103,7 @@ class TabStripModelChange { + + private: + const Type type_ = kSelectionOnly; +- const std::vector<Delta> deltas_; ++ std::vector<Delta> deltas_; + + DISALLOW_COPY_AND_ASSIGN(TabStripModelChange); + }; + |