Skip to content

error: definition of implicit copy assignment operator for 'SaveLayerOptions' is deprecated because it has a user-declared copy constructor #99795

@jmagman

Description

@jmagman

Version of clang in Xcode 13.0 has a new error:

In file included from ../../flutter/display_list/display_list_builder.h:8:
../../flutter/display_list/display_list.h:158:3: error: definition of implicit copy assignment operator for 'SaveLayerOptions' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
  SaveLayerOptions(const SaveLayerOptions& options) : flags_(options.flags_) {}
  ^
../../flutter/display_list/display_list_builder.cc:283:21: note: in implicit copy assignment operator for 'flutter::SaveLayerOptions' first required here
        op->options = op->options.with_can_distribute_opacity();

Seen in flutter/engine#31915 https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8820208992595983441/+/u/build_ios_debug_sim_arm64/stdout

Blocking #85555

flutter/engine#30957 @flar

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions