Skip to content

Compile error in flatbuffers/stl_emulation with new GCC version #818

@ltoenning

Description

@ltoenning

Describe the bug:
When compiling master with GCC 14.1.1, I am getting the following error message:

[...]/BehaviorTree.CPP/include/behaviortree_cpp/flatbuffers/stl_emulation.h:549:12: error: assignment of read-only member ‘flatbuffers::span<T, Extent>::count_’
  549 |     count_ = other.count_;
      |     ~~~~~~~^~~~~~~~~~~~

This was fixed in flatbuffers with google/flatbuffers#7227. It seems that the new GCC version somehow detects this error now as well.

This also affects the v3.8 branch.

How to Reproduce:

Compile BehaviorTree.CPP with GCC 14.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions