[Boost-bugs] [Boost C++ Libraries] #11750: error when compiling boost 1.59 : error: two or more data types in declaration of 'parameter

Subject: [Boost-bugs] [Boost C++ Libraries] #11750: error when compiling boost 1.59 : error: two or more data types in declaration of 'parameter
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-23 17:42:28


#11750: error when compiling boost 1.59 : error: two or more data types in
declaration of 'parameter
--------------------------------+-------------------------
 Reporter: ramanats@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: atomic type_traits |
--------------------------------+-------------------------
 My platform is 32 bit RH Linux 5.1 with g++ 4.1.2.


 I have a dynamic (.so) library that includes boost/atomic.hpp. The library
 compiles without issues.
 When I build the main application that uses this library, I get the
 following errors related to boost/type_traits/detail hpp files.


 /path_to_boost/boost/type_traits/detail/ice_or.hpp:16: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_or.hpp:16: error: long, short,
 signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_or.hpp:16: error: long, short,
 signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_or.hpp:16: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_or.hpp:16: error: long, short,
 signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_or.hpp:19: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_or.hpp:19: error: long, short,
 signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_or.hpp:19: error: long, short,
 signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_or.hpp:19: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_or.hpp:19: error: long, short,
 signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_and.hpp:17: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_and.hpp:17: error: long,
 short, signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_and.hpp:17: error: long,
 short, signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_and.hpp:17: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_and.hpp:17: error: long,
 short, signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_and.hpp:20: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_and.hpp:20: error: long,
 short, signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_and.hpp:20: error: long,
 short, signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_and.hpp:20: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_and.hpp:20: error: long,
 short, signed or unsigned invalid for 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:16: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:19: error: expected
 primary-expression before 'signed'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:19: error: expected `)'
 before 'signed'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:22: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:25: error: expected
 primary-expression before 'signed'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:25: error: expected `)'
 before 'signed'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:29: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:29: error: type/value
 mismatch at argument 1 in template parameter list for 'template<int
 <anonymous>, short int <anonymous> > struct boost::type_traits::ice_eq'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:29: error: expected a
 constant of type 'int', got 'signed char'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:29: error: type/value
 mismatch at argument 2 in template parameter list for 'template<int
 <anonymous>, short int <anonymous> > struct boost::type_traits::ice_eq'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:29: error: expected a
 constant of type 'short int', got 'short int'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:29: error: template
 declaration of 'const bool boost::type_traits::value'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:30: error: two or more
 data types in declaration of 'parameter'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:30: error: type/value
 mismatch at argument 1 in template parameter list for 'template<int
 <anonymous>, short int <anonymous> > struct boost::type_traits::ice_ne'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:30: error: expected a
 constant of type 'int', got 'signed char'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:30: error: type/value
 mismatch at argument 2 in template parameter list for 'template<int
 <anonymous>, short int <anonymous> > struct boost::type_traits::ice_ne'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:30: error: expected a
 constant of type 'short int', got 'short int'
 /path_to_boost/boost/type_traits/detail/ice_eq.hpp:30: error: template
 declaration of 'const bool boost::type_traits::value'

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11750>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC