Skip to content

Uninitialized warning with gcc 16.1.0 #96

@J-Richter

Description

@J-Richter

With boost 1.91.0 and GCC 16.1.0 I get this warnings for our code. I shortened the template arguments to make it more readable. Might also be a compiler bug.

In member function 'boost::multi_index::multi_index_container<>::final_node_type* boost::multi_index::multi_index_container<>::header() const',
inlined from 'boost::multi_index::detail::index_base<>::final_node_type* boost::multi_index::detail::index_base<>::final_header() const' at boost/multi_index/detail/index_base.hpp:215:61,
inlined from 'boost::multi_index::detail::hashed_index<>::index_node_type* boost::multi_index::detail::hashed_index<>::header() const at boost/multi_index/hashed_index.hpp:1272:59,
inlined from 'boost::multi_index::detail::hashed_index<>::hashed_index(const ctor_args_list&, const allocator_type&) at boost/multi_index/hashed_index.hpp:743:5:
boost/multi_index_container.hpp:554:26: warning: '((const boost::multi_index::multi_index_container<>*)this)[230584300921369395].boost::multi_index::multi_index_container<>::boost::multi_index::detail::header_holder<>.boost::multi_index::detail::header_holder<>::member' is used uninitialized [-Wuninitialized]
554 |     return &*bfm_header::member;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions