Boost C++ Libraries: Ticket #7898: TI compiller: wrong decision about type_info presence in boost/config https://svn.boost.org/trac10/ticket/7898 <p> Hello! </p> <p> When I try to include boost/static_assert.hpp on Texas Instruments compiler (TMS320C6x C/C++ Compiler v7.3.8) I get an error "... ../cots/boost/boost/config/suffix.hpp", line 574: error #284: the global scope has no "type_info" </p> <p> There is a fault place: </p> <pre class="wiki">// When BOOST_NO_STD_TYPEINFO is defined, we can just import // the global definition into std namespace: #if defined(BOOST_NO_STD_TYPEINFO) &amp;&amp; defined(__cplusplus) #include &lt;typeinfo&gt; namespace std{ using ::type_info; } #endif </pre><p> Source of issue is that boost incorrectly determines presence of type_info in std namespace: </p> <p> boost/config/stdlib/dinkumware.hpp: </p> <pre class="wiki">#include &lt;typeinfo&gt; #if ( (!_HAS_EXCEPTIONS &amp;&amp; !defined(__ghs__)) || (!_HAS_NAMESPACE &amp;&amp; defined(__ghs__)) ) # define BOOST_NO_STD_TYPEINFO #endif </pre><p> At this moment my workaround is to add !defined(__TI_COMPILER_VERSION__) to condition above. </p> <p> Previously I used boost 1.37 which has no "BOOST_NO_STD_TYPEINFO" section in dinkumware.hpp file. </p> <p> TI has some specific config for boost (<a class="ext-link" href="http://processors.wiki.ti.com/index.php/Building_and_Running_Boost_Code_with_the_C6000_Compiler"><span class="icon">​</span>http://processors.wiki.ti.com/index.php/Building_and_Running_Boost_Code_with_the_C6000_Compiler</a>). This issue takes place with these patches also. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7898 Trac 1.4.3 John Maddock Tue, 19 Feb 2013 16:12:29 GMT <link>https://svn.boost.org/trac10/ticket/7898#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7898#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83006" title="Apply patch from 7898. REfs #7898.">[83006]</a>) Apply patch from 7898. REfs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7898" title="#7898: Bugs: TI compiller: wrong decision about type_info presence in boost/config (closed: fixed)">#7898</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sun, 24 Feb 2013 19:08:04 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7898#comment:2 https://svn.boost.org/trac10/ticket/7898#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</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/83139" title="Merge changes from Trunk. Fixes #6013. Fixes #7151. Fixes #7359. Fixes ...">[83139]</a>) Merge changes from Trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6013" title="#6013: Patches: endian.hpp header patch to utilize OpenBSD's endian header (closed: fixed)">#6013</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7151" title="#7151: Bugs: config.hpp does not define BOOST_HAS_TR1_TUPLE (closed: fixed)">#7151</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7359" title="#7359: Bugs: Compatibility with Intel icpc 13.0 when using -use-clang-env option on ... (closed: fixed)">#7359</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7389" title="#7389: Bugs: __STDC_LIMIT_MACROS can be redefined by boost when using mingw32 (closed: fixed)">#7389</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7452" title="#7452: Patches: Compiling Boost.Asio Example Error [with Clang compiled by MinGW gcc] (closed: fixed)">#7452</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7528" title="#7528: Bugs: Compilation failure on Android and Xbox 360 (closed: fixed)">#7528</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7703" title="#7703: Bugs: endian.hpp for QNX / BlackBerry10 (closed: fixed)">#7703</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7841" title="#7841: Feature Requests: A macro to detect real GCC (closed: fixed)">#7841</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7898" title="#7898: Bugs: TI compiller: wrong decision about type_info presence in boost/config (closed: fixed)">#7898</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7938" title="#7938: Patches: Support vxWorks (closed: fixed)">#7938</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8048" title="#8048: Bugs: Boost 1.53 + GCC 4.6.3 __int128 undefined. (closed: fixed)">#8048</a>. </p> Ticket