Boost C++ Libraries: Ticket #4757: Compiler error in boost/array.hpp on Solaris w/Sun Studio 12 https://svn.boost.org/trac10/ticket/4757 <p> When compiling boost 1.44.0 on Solaris 9 Sparc with Sun Studio 12 I get the following error: </p> <pre class="wiki"> 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" </pre><p> Dynamic indices doesn't seem to be supported by Sun Studio and should be replaced by calloc as described in <a class="ext-link" href="http://forums.sun.com/thread.jspa?threadID=5310741"><span class="icon">​</span>http://forums.sun.com/thread.jspa?threadID=5310741</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4757 Trac 1.4.3 Vladimir Prus Wed, 20 Oct 2010 08:36:10 GMT component changed; owner set https://svn.boost.org/trac10/ticket/4757#comment:1 https://svn.boost.org/trac10/ticket/4757#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Marshall Clow</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">array</span> </li> </ul> Ticket Marshall Clow Wed, 20 Oct 2010 13:18:05 GMT <link>https://svn.boost.org/trac10/ticket/4757#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4757#comment:2</guid> <description> <p> The forum comment doesn't seem to have anything to do with this situation. Still looking... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Sat, 23 Oct 2010 19:15:18 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/4757#comment:3 https://svn.boost.org/trac10/ticket/4757#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Checked in a proposed fix in <a class="changeset" href="https://svn.boost.org/trac10/changeset/66154" title="Fix elems for Sun compilers">[66154]</a>; will wait for tests to cycle before merging to release. </p> Ticket Marshall Clow Mon, 15 Nov 2010 22:25:58 GMT <link>https://svn.boost.org/trac10/ticket/4757#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4757#comment:4</guid> <description> <p> The fix seems to have broken all the borland compilers. Investigating further. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Sat, 20 Nov 2010 00:48:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4757#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4757#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/66651" title="SunPro workaround; references #4757">[66651]</a>) <a class="missing wiki">SunPro</a> workaround; references <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4757" title="#4757: Bugs: Compiler error in boost/array.hpp on Solaris w/Sun Studio 12 (closed: fixed)">#4757</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Tue, 28 Dec 2010 18:28:40 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4757#comment:6 https://svn.boost.org/trac10/ticket/4757#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/67477" title="Merged array changes to release; fixes #4757">[67477]</a>) Merged array changes to release; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4757" title="#4757: Bugs: Compiler error in boost/array.hpp on Solaris w/Sun Studio 12 (closed: fixed)">#4757</a> </p> Ticket