Boost C++ Libraries: Ticket #13621: ctti_type_index missing first letter in generated class name https://svn.boost.org/trac10/ticket/13621 <p> Code: </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;boost/type_index/ctti_type_index.hpp&gt; class empty { }; int main() { std::cout &lt;&lt; boost::typeindex::ctti_type_index::type_id&lt;empty&gt;().pretty_name() &lt;&lt; std::endl; } </pre><p> prints: "mpty" instead of expected: 'empty'. Problem occurs on gcc version 7.3.1 20180303 when compiled with flag -std=c++14 or c++17. It works ok when compiling with -std=c++11 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13621 Trac 1.4.3 Antony Polukhin Sat, 28 Jul 2018 14:50:05 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/13621#comment:1 https://svn.boost.org/trac10/ticket/13621#comment:1 <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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.65.0</span> </li> </ul> <p> This was probably fixed in <a class="ext-link" href="https://github.com/apolukhin/type_index/commit/4585bab3c39ee9739fb5bf5dcd089a61132e6c60"><span class="icon">​</span>in this PR for Boost-1.65.0</a>. </p> <p> Anyway, I've added your test cases <a class="ext-link" href="https://github.com/boostorg/type_index/commit/c9c1412a05f942958b296aa69fc4f89831aa7aab"><span class="icon">​</span>here</a> and double checked that on GCC-7.3 they pass. </p> Ticket