Boost C++ Libraries: Ticket #9077: Loop body never executed in boost::random::mersenne_twister.hpp https://svn.boost.org/trac10/ticket/9077 <p> line 430 </p> <p> C6294 Loop body never executed </p> <blockquote> <p> Ill-defined for-loop: initial condition does not satisfy test. </p> </blockquote> <pre class="wiki">mersenne_twister_engine&lt;UIntType,w,n,m,r,a,u,d,s,b,t,c,l,f&gt;::twist() { ... for(std::size_t j = n-1-unroll_extra2; j &lt; n-1; j++) { UIntType y = (x[j] &amp; upper_mask) | (x[j+1] &amp; lower_mask); x[j] = x[j-(n-m)] ^ (y &gt;&gt; 1) ^ ((x[j+1]&amp;1) * a); ... } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9077 Trac 1.4.3 Steven Watanabe Tue, 11 Mar 2014 00:07:16 GMT <link>https://svn.boost.org/trac10/ticket/9077#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9077#comment:1</guid> <description> <p> What compiler is this with? This loop is needed in the general case. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Sat, 13 Feb 2016 16:00:52 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9077#comment:2 https://svn.boost.org/trac10/ticket/9077#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">invalid</span> </li> </ul> Ticket