Opened 15 years ago

Closed 15 years ago

#1063 closed Bugs (invalid)

multi_index usage refuses to compile with Sun Studio 11 (CC 5.8) on sparc

Reported by: anonymous Owned by: Joaquín M López Muñoz
Milestone: To Be Determined Component: multi_index
Version: Boost 1.34.0 Severity: Showstopper
Keywords: Cc:

Description

/studio11/SUNWspro/bin/CC -c -DNDEBUG -D_STL=std -I./../rlp/utilities/include -I./../third-party-tools/boost -KPIC -mt -w -xO5 -g0 bt_boost_test.cpp -o obj/sparc-solaris9-cc58/bt_boost_test.o "./../third-party-tools/boost/boost/multi_index_container.hpp", line 309: Error: An integer constant expression is required here. "bt_boost_test.cpp", line 62: Where: While specializing "boost::multi_index::multi_index_container, boost::multi_index::member>, 5>, ustring_hasher, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator>::index". "bt_boost_test.cpp", line 62: Where: Specialized in non-template code. "./../third-party-tools/boost/boost/multi_index_container.hpp", line 310: Error: The type "boost::STATIC_ASSERTION_FAILURE, boost::multi_index::member>, 5>, ustring_hasher, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator>::index::index_found>" is incomplete. "bt_boost_test.cpp", line 62: Where: While specializing "boost::multi_index::multi_index_container, boost::multi_index::member>, 5>, ustring_hasher, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator>::index". "bt_boost_test.cpp", line 62: Where: Specialized in non-template code. "bt_boost_test.cpp", line 77: Error: Could not find a match for boost::multi_index::detail::hashed_index>, 5>, ustring_hasher, std::equal_to>>, boost::multi_index::detail::nth_layer<1, employee, boost::multi_index::indexed_by, boost::multi_index::member>, 5>, ustring_hasher, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator>, boost::mpl::aux::fold_impl<1, int, int, boost::mpl::vector0, boost::mpl::bind2, mpl_::arg<1>, boost::mpl::bind1, mpl_::void_>, mpl_::arg<1>>, 0>, mpl_::arg<2>>>>::state, boost::multi_index::detail::hashed_unique_tag>::insert(employee) needed in UT_Boost::testBasic(). "bt_boost_test.cpp", line 81: Error: Could not find a match for boost::multi_index::detail::hashed_index>, 5>, ustring_hasher, std::equal_to>>, boost::multi_index::detail::nth_layer<1, employee, boost::multi_index::indexed_by, boost::multi_index::member>, 5>, ustring_hasher, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator>, boost::mpl::aux::fold_impl<1, int, int, boost::mpl::vector0, boost::mpl::bind2, mpl_::arg<1>, boost::mpl::bind1, mpl_::void_>, mpl_::arg<1>>, 0>, mpl_::arg<2>>>>::state, boost::multi_index::detail::hashed_unique_tag>::insert(employee) needed in UT_Boost::testBasic(). "bt_boost_test.cpp", line 83: Error: Could not find a match for boost::multi_index::multi_index_container, boost::multi_index::member>, 5>, ustring_hasher, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator>::get, boost::multi_index::member>, 5>, ustring_hasher, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator>::N>() needed in UT_Boost::testBasic(). "bt_boost_test.cpp", line 87: Error: boost::mpl::deref>, 5>, ustring_hasher, std::equal_to>>, boost::multi_index::detail::nth_layer<1, employee, boost::multi_index::indexed_by, boost::multi_index::member>, 5>, ustring_hasher, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator>, boost::mpl::aux::fold_impl<1, int, int, boost::mpl::vector0, boost::mpl::bind2, mpl_::arg<1>, boost::mpl::bind1, mpl_::void_>, mpl_::arg<1>>, 0>, mpl_::arg<2>>>>::state, boost::multi_index::detail::hashed_unique_tag>::index_type_list, boost::multi_index::detail::has_tag>::type>::type is not a structure type. "bt_boost_test.cpp", line 88: Error: The operation "iterator != boost::multi_index::detail::hashed_index_iterator>, boost::multi_index::detail::bucket_array, mpl_::na>" is illegal. "bt_boost_test.cpp", line 89: Error: Pointer type needed instead of iterator. "bt_boost_test.cpp", line 92: Error: boost::mpl::deref>, 5>, ustring_hasher, std::equal_to>>, boost::multi_index::detail::nth_layer<1, employee, boost::multi_index::indexed_by, boost::multi_index::member>, 5>, ustring_hasher, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator>, boost::mpl::aux::fold_impl<1, int, int, boost::mpl::vector0, boost::mpl::bind2, mpl_::arg<1>, boost::mpl::bind1, mpl_::void_>, mpl_::arg<1>>, 0>, mpl_::arg<2>>>>::state, boost::multi_index::detail::hashed_unique_tag>::index_type_list, boost::multi_index::detail::has_tag>::type>::type is not a structure type. "bt_boost_test.cpp", line 93: Error: The operation "iterator == boost::multi_index::detail::hashed_index_iterator>, boost::multi_index::detail::bucket_array, mpl_::na>" is illegal. 10 Error(s) detected.

Attachments (1)

bloop.cpp (1.8 KB ) - added by anonymous 15 years ago.

Download all attachments as: .zip

Change History (3)

by anonymous, 15 years ago

Attachment: bloop.cpp added

comment:1 by Joaquín M López Muñoz, 15 years ago

Owner: set to Joaquín M López Muñoz

comment:2 by Joaquín M López Muñoz, 15 years ago

Resolution: invalid
Status: newclosed

The problem only showed with an old patch level. When upgrading to Sun C++ 5.8 Patch 121017-11 2007/05/02 everything works fine.

Note: See TracTickets for help on using tickets.