Subject: [Boost-bugs] [Boost C++ Libraries] #4757: Compiler error in boost/array.hpp on Solaris w/Sun Studio 12
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-19 10:28:18
#4757: Compiler error in boost/array.hpp on Solaris w/Sun Studio 12
--------------------------------------------------+-------------------------
Reporter: Dagobert Michelsen <dam@â¦> | Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Building Boost
Version: Boost 1.44.0 | Severity: Problem
Keywords: |
--------------------------------------------------+-------------------------
When compiling boost 1.44.0 on Solaris 9 Sparc with Sun Studio 12 I get
the following error:
{{{
sun.compile.c++ bin.v2/libs/math/build/sun/release/stdlib-sun-stlport
/threading-multi/assoc_legendre.o
"./boost/array.hpp", line 351: Error: An integer constant expression is
required within the array subscript operator.
"./boost/array.hpp", line 358: Error: An integer constant expression is
required within the array subscript operator.
2 Error(s) detected.
"CC" -library=stlport4 -xldscope=hidden -xO4 -mt -erroff=%none -KPIC
-DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"."
-I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/sun/release/stdlib-
sun-stlport/threading-multi/assoc_legendre.o"
"libs/math/build/../src/tr1/assoc_legendre.cpp"
}}}
Dynamic indices doesn't seem to be supported by Sun Studio and should be
replaced by calloc as described in
http://forums.sun.com/thread.jspa?threadID=5310741
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4757> 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:04 UTC