Opened 9 years ago

Closed 9 years ago

#9446 closed Bugs (fixed)

atomic/detail/gcc-sparcv9.hpp: constexpr constructor with non-empty body

Reported by: smr@… Owned by: timblechmann
Milestone: To Be Determined Component: atomic
Version: Boost 1.54.0 Severity: Showstopper
Keywords: Cc:

Description

The named file has several examples of a constexpr constructor that has a non-empty body. I'm far from a C++ expert but a little googling suggests this is not legal C++11.

This issue was first reported as issue #723115 in Debian's Bug Tracking System. I can't report the actual URL because trac thinks it is spam. Look at bugs [dot] debian [dot] org.

The sparc code for boost::atomic seems to be incorrect. Supercollider [1] failed to build on sparc with the following message:

/usr/include/boost/atomic/detail/gcc-sparcv9.hpp: In constructor 'constexpr boost::atomics::detail::base_atomic<T, void, 1u, Sign>::base_atomic(const value_type&)':
/usr/include/boost/atomic/detail/gcc-sparcv9.hpp:993:5: error: constexpr constructor does not have empty body /usr/include/boost/atomic/detail/gcc-sparcv9.hpp: In constructor 'constexpr boost::atomics::detail::base_atomic<T, void, 2u, Sign>::base_atomic(const value_type&)':
/usr/include/boost/atomic/detail/gcc-sparcv9.hpp:1083:5: error: constexpr constructor does not have empty body /usr/include/boost/atomic/detail/gcc-sparcv9.hpp: In constructor 'constexpr boost::atomics::detail::base_atomic<T, void, 4u, Sign>::base_atomic(const value_type&)': 
/usr/include/boost/atomic/detail/gcc-sparcv9.hpp:1173:5: error: constexpr constructor does not have empty body

Change History (3)

comment:1 by smr@…, 9 years ago

Component: Noneatomic
Owner: set to timblechmann
Severity: ProblemShowstopper

comment:3 by Andrey Semashev, 9 years ago

Resolution: fixed
Status: newclosed

Merged to master.

Note: See TracTickets for help on using tickets.