WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
231716
Compilation error: In file included from ./b3/B3StackmapGenerationParams.h:31: ./b3/B3ValueRep.h:119:5: error: definition of implicit copy assignment operator for 'ValueRep' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecat
https://bugs.webkit.org/show_bug.cgi?id=231716
Summary
Compilation error: In file included from ./b3/B3StackmapGenerationParams.h:31...
Jean-Yves Avenard [:jya]
Reported
2021-10-13 20:28:27 PDT
When compiling I get: In file included from ./b3/B3StackmapGenerationParams.h:31: ./b3/B3ValueRep.h:119:5: error: definition of implicit copy assignment operator for 'ValueRep' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy] ValueRep(const ValueRep&) = default; /b3/B3StackmapValue.cpp:77:19: note: in implicit copy assignment operator for 'JSC::B3::ValueRep' first required here m_reps[index] = rep; Per C++11 and later: “The generation of the implicitly-defined copy assignment operator is deprecated if T has a user-declared destructor or user-declared copy constructor. (since C++11)” so it's missing a copy assignment operator definition.
Attachments
Patch
(1.80 KB, patch)
2021-10-13 20:45 PDT
,
Jean-Yves Avenard [:jya]
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-10-13 20:28:58 PDT
<
rdar://problem/84230556
>
Jean-Yves Avenard [:jya]
Comment 2
2021-10-13 20:45:48 PDT
Created
attachment 441180
[details]
Patch
Yusuke Suzuki
Comment 3
2021-10-13 21:22:52 PDT
Ah, I already landed unreviewed build fix
https://github.com/WebKit/WebKit/commit/9068b467eb20d0e553678c13b8eeed8c8d5b7d93
:)
Jean-Yves Avenard [:jya]
Comment 4
2021-10-13 21:35:03 PDT
(In reply to Yusuke Suzuki from
comment #3
)
> Ah, I already landed unreviewed build fix >
https://github.com/WebKit/WebKit/commit/
> 9068b467eb20d0e553678c13b8eeed8c8d5b7d93 :)
that will fix it too. that copy constructor wasn't used. I hesitated between the two fixes
Jean-Yves Avenard [:jya]
Comment 5
2021-10-13 21:36:08 PDT
been fixed already
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug