Boost 1.72: Powerpc compiler gives error on including unordered_map

Open
#22 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
compilers

Research direction

Reproduce the failure with GCC 4.7.2 on PowerPC while including boost/unordered_map.hpp, then inspect boost/tuple/detail/tuple_basic.hpp at lines 704 and 836. Compare the behavior with Boost 1.42 and determine whether the reported attribute warnings can be resolved; done means the Boost 1.72 include compiles without these errors.

Written by the indexing model from the issue text.

Description

bug need more info

When including unordered_map.hpp file, the powerpc compiler (gcc 4.7.2) gives an error inside the tuple_basic.hpp.
I am actually upgrading boost on the project from 1.42 to 1.72. I dont see any errors from the 1.42 version.

In file included from /boost/1_72_0/include/boost/tuple/tuple.hpp:28:0,
                 from /boost/1_72_0/include/boost/unordered/detail/implementation.hpp:31,
                 from /boost/1_72_0/include/boost/unordered/detail/map.hpp:6,
                 from /boost/1_72_0/include/boost/unordered/unordered_map.hpp:21,
                 from /boost/1_72_0/include/boost/unordered_map.hpp:17,
                 from build/ppc2/system/util/WeakReference.h:17,
                 from build/ppc2/system/util/WeakReference.c++:8:
/boost/1_72_0/include/boost/tuple/detail/tuple_basic.hpp:704:60: error: ignoring attributes on template argument 'void (boost::tuples::detail::swallow_assign::*(void (boost::tuples::detail::swallow_assign::*)()))()' [-Werror]
/boost/1_72_0/include/boost/tuple/detail/tuple_basic.hpp:836:37: error: ignoring attributes on template argument 'void (boost::tuples::detail::swallow_assign::*(void (boost::tuples::detail::swallow_assign::*)()))()' [-Werror]
Dominant language
C++
Stars
21
Forks
48
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/tuple

All issues in boostorg/tuple

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.