Boost logo

Boost :

Subject: Re: [boost] Anyone have access to Sun Studio 12 compiler?
From: Lars Viklund (zao_at_[hidden])
Date: 2010-10-20 12:49:25


On Wed, Oct 20, 2010 at 07:52:40AM -0700, Marshall Clow wrote:
> I have a bug report on that compiler (Sparc, Solaris 9) that I don't have any way to reproduce.

It is reproducable on one of the machines [1] I have access to at my
university (Solaris 10, sparc, SunStudio 12) with the command line [2]
and test program [3] shown below, producing the below errors [4], where
:351 and :358 are the definitions of the free c_array functions of
Boost.Array.

[1] SunOS vega 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Fire-V240 Solaris

[2] "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" -o 4757 4757.cc

[3] // 4757.cc
// ----8<----
#include <boost/array.hpp>
int main() {}
// ----8<----

[4]
"./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.

-- 
Lars Viklund | zao_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk