| Summary: | Clang can't compile Optional<GPRTemporary> since r278035 because GPRTemporary has non-const copy constructor | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||||
| Component: | JavaScriptCore | Assignee: | Fujii Hironori <Hironori.Fujii> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | cdumez, darin, ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | 211674 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Fujii Hironori
2021-05-25 17:11:51 PDT
(In reply to Fujii Hironori from comment #0) > WinCairo Debug clang-cl can't compile. > WinCairo Release clang-cl and MSVC can compile. Wrong. WinCairo Release clang-cl can't compile. clang-cl can't compile while MSVC can. This? c++ - When are special member functions of a template class instantiated? - Stack Overflow https://stackoverflow.com/q/10370713 Created attachment 429718 [details]
WIP patch
Have you tried replacing: GPRTemporary(GPRTemporary& other) = delete; with: GPRTemporary(const GPRTemporary& other) = delete; ? Comment on attachment 429718 [details] WIP patch View in context: https://bugs.webkit.org/attachment.cgi?id=429718&action=review > Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h:2030 > + GPRTemporary(GPRTemporary&) = delete; > Do we need both? Comment on attachment 429718 [details] WIP patch View in context: https://bugs.webkit.org/attachment.cgi?id=429718&action=review >> Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h:2030 >> > > Do we need both? Oh, no I don't. Thanks. Created attachment 429723 [details]
Patch
Comment on attachment 429723 [details]
Patch
r=me if the bots are happy.
Committed r278073 (238152@main): <https://commits.webkit.org/238152@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 429723 [details]. |