Boost C++ Libraries: Ticket #12404: undefined behaviour in interval container library https://svn.boost.org/trac10/ticket/12404 <p> The file boost/icl/interval_bounds.hpp (line 45) contains the expression ((~_bits&lt;&lt;1) &amp; _left) which invokes undefined behaviour by left shifting a negative signed integer. It can be fixed by replacing the expression with (((bound_type)~_bits&lt;&lt;1) &amp; _left). This issue was detected by GCC 6.1.0 with -fsanitize=undefined. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12404 Trac 1.4.3 Joachim Faulhaber Tue, 19 Jun 2018 13:37:35 GMT status changed; cc, resolution set https://svn.boost.org/trac10/ticket/12404#comment:1 https://svn.boost.org/trac10/ticket/12404#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">Joachim Faulhaber</span> added </li> <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> Ticket