~chromium-team/chromium-browser/bionic-stable

« back to all changes in this revision

Viewing changes to debian/patches/c-std-17.patch

  • Committer: Nathan Pratta Teodosio
  • Date: 2022-12-02 17:37:47 UTC
  • mfrom: (1349.3.365 bionic-dev)
  • Revision ID: nathan.teodosio@canonical.com-20221202173747-o2gijks8zme7zawp
* Upstream release: 108.0.5359.71.
* d/p/libaom-armhf-build-cpudetect.patch: dropped.
* d/p/c-std-17.patch: added.
* d/p/undefined-mulodi4.patch: added
* d/p/suppress-newer-clang-warning-flags.patch: refreshed.
* d/control: add qt5-default.
* chromium-browser.sh.in: enable page translation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Many such overload resolutions errors in C++20:
 
2
 .
 
3
 ../../base/allocator/partition_allocator/starscan/metadata_allocator.h:43:8: note: candidate function [with U = unsigned int]
 
4
   bool operator!=(const MetadataAllocator<U>& o) {
 
5
        ^
 
6
 ../../base/allocator/partition_allocator/starscan/metadata_allocator.h:38:8: note: candidate function [with U = unsigned int]
 
7
   bool operator==(const MetadataAllocator<U>&) {
 
8
        ^
 
9
 ../../base/allocator/partition_allocator/starscan/metadata_allocator.h:38:8: note: candidate function (with reversed parameter order) [with U = unsigned int]
 
10
 .
 
11
 Refer to https://stackoverflow.com/a/60569879.
 
12
Author: Nathan Pratta Teodosio <nathan.teodosio@canonical.com>
 
13
Forwarded: not-needed
 
14
 
 
15
--- a/build/config/compiler/BUILD.gn
 
16
+++ b/build/config/compiler/BUILD.gn
 
17
@@ -592,11 +592,11 @@
 
18
     } else if (is_linux) {
 
19
       # TODO(crbug.com/1284275): Switch to C++20 on all platforms.
 
20
       if (is_clang) {
 
21
-        cflags_cc += [ "-std=${standard_prefix}++20" ]
 
22
+        cflags_cc += [ "-std=${standard_prefix}++17" ]
 
23
       } else {
 
24
         # The gcc bots are currently using GCC 9, which is not new enough to
 
25
         # support "c++20"/"gnu++20".
 
26
-        cflags_cc += [ "-std=${standard_prefix}++2a" ]
 
27
+        cflags_cc += [ "-std=${standard_prefix}++17" ]
 
28
       }
 
29
     } else {
 
30
       cflags_cc += [ "-std=${standard_prefix}++17" ]