Bug 246447
| Summary: | [GCC] Build error in Ubuntu 20.04 after 255095@main | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Diego Pino <dpino> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Diego Pino
The Ubuntu 20.04 bot is failing with the following error:
```
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebCore/css/StyleColor.h:53:50: error: ‘bool WebCore::CurrentColor::operator==(const WebCore::CurrentColor&) const’ cannot be defaulted
53 | bool operator==(const CurrentColor&) const = default;
| ^~~~~~~
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebCore/css/StyleColor.h:78:48: error: ‘bool WebCore::StyleColor::operator==(const WebCore::StyleColor&) const’ cannot be defaulted
78 | bool operator==(const StyleColor&) const = default;
| ^~~~~~~
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebCore/platform/text/TextFlags.h:166:65: error: ‘bool WebCore::FontVariantAlternatesNormal::operator==(const WebCore::FontVariantAlternatesNormal&) const’ cannot be defaulted
166 | bool operator==(const FontVariantAlternatesNormal&) const = default;
| ^~~~~~~
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebCore/platform/text/TextFlags.h:170:65: error: ‘bool WebCore::FontVariantAlternatesValues::operator==(const WebCore::FontVariantAlternatesValues&) const’ cannot be defaulted
170 | bool operator==(const FontVariantAlternatesValues&) const = default;
| ^~~~~~~
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebCore/platform/text/TextFlags.h:187:59: error: ‘bool WebCore::FontVariantAlternates::operator==(const WebCore::FontVariantAlternates&) const’ cannot be defaulted
187 | bool operator==(const FontVariantAlternates&) const = default;
| ^~~~~~~
```
Ubuntu 20.04 uses GCC9.3 It seems this version doesn't support default initialiaation of `operator==`. Also `operator!=` needs explicity definition.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Matthieu Dubet
Pull request: https://github.com/WebKit/WebKit/pull/5322
Alexey Proskuryakov
This was fixed via a different PR:
Committed 255482@main (a994d17): https://commits.webkit.org/255482@main
Reviewed commits have been landed. Closing PR #5321 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/101151548>