Opened 8 years ago

#10571 new Bugs

type_index tests configuration issues for Oracle Studio c++

Reported by: angela.xie@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.56.0 Severity: Problem
Keywords: sparc Cc:

Description

Problems: 1.type_index library tests failed to compile with error message "../../../boost/type_index/stl_type_index.hpp", line 165: Error: abi is not defined." with studio 12.4 (c++) on Solaris 11.2.

2.nortti test flags are incorrect for studio c++.

Solution for problem 1: in boost/type_index/stl_type_index.hpp 42:#ifdef GNUC 43 # include <cxxabi.h> abi::cxa_demangle 44 #endif

replace line 42 with

#if defined GNUC
(defined(SUNPRO_CC) && SUNPRO_CC_COMPAT!=5)

154:#if defined(_MSC_VER) 155: std::string ret = data_->name(); 156: std::string::size_type pos_beg = ret.find(cvr_saver_name); 157: if (pos_beg == std::string::npos) { 158: return ret; 159: }

replace line 154 with

#if defined(_MSC_VER)
(defined(SUNPRO_CC) && (SUNPRO_CC_COMPAT==5))

in boost/type_index/detail/compile_time_type_info.hpp 120: #elif defined(PRETTY_FUNCTION) \

121: 122: 123: 124: 125:
defined(GNUC) \
(defined(MWERKS) && (MWERKS >= 0x3000)) \
(defined(ICC) && (ICC >= 600)) \
defined(ghs) \
defined(DMC)
insert "
defined(SUNPRO_CC) \" into between line 121, 122
defined(GNUC) \
defined(SUNPRO_CC) \
(defined(MWERKS) && (MWERKS >= 0x3000)) \

solution for problem 2: add -features=no%rtti for nortti test

Change History (0)

Note: See TracTickets for help on using tickets.