Boost C++ Libraries: Ticket #4777: tr1 random tests don't compile: private typedef in boost::random::discard_block https://svn.boost.org/trac10/ticket/4777 <p> All the tr1 random tests fail to compile </p> <pre class="wiki">error C2248: 'boost::random::discard_block&lt;URNG,p,r&gt;::result_type' : cannot access private typedef declared in class 'boost::random::discard_block&lt;URNG,p,r&gt;' ..\boost/random/discard_block.hpp(199) : see declaration of 'boost::random::discard_block&lt;URNG,p,r&gt;::result_type' </pre><p> Doesn't seem like a compiler error: the typedef really is private in discard_block.hpp line 199. </p> <p> The base class, discard_block_engine, has the typedef public, so it seems that discard_block should follow suit. </p> <p> Affects 4 tests from these two places in the test code: ..\libs\tr1\test\test_random.cpp(151) ..\libs\tr1\test\run_random.cpp(21) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4777 Trac 1.4.3 Jim Bell <jim@…> Mon, 25 Oct 2010 13:43:43 GMT severity changed https://svn.boost.org/trac10/ticket/4777#comment:1 https://svn.boost.org/trac10/ticket/4777#comment:1 <ul> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Regression</span> </li> </ul> Ticket Marshall Clow Mon, 01 Nov 2010 02:40:17 GMT <link>https://svn.boost.org/trac10/ticket/4777#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4777#comment:2</guid> <description> <p> Just tried this on the trunk <a class="changeset" href="https://svn.boost.org/trac10/changeset/66302" title="Silenced warnings.">[66302]</a>, release branch <a class="changeset" href="https://svn.boost.org/trac10/changeset/66302" title="Silenced warnings.">[66302]</a> and the 1.44 release. No errors here - Mac OS X 10.6.2, gcc 4.2.1 </p> <p> On the release test matrix, <a href="http://www.boost.org/development/tests/release/developer/random.html">http://www.boost.org/development/tests/release/developer/random.html</a>, I'm seeing two compilers (Pathscale and Qcc) having trouble, and all the rest are green. </p> <p> I'm guessing, from the "C2248" error number, that this is Visual Studio - but what version, etc? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Mon, 01 Nov 2010 02:49:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4777#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4777#comment:3</guid> <description> <p> Ok - so I'm looking at the tr1 tests instead. ;-) </p> <p> In the test matrix, <a href="http://www.boost.org/development/tests/release/developer/tr1.html">http://www.boost.org/development/tests/release/developer/tr1.html</a> the tests are failing for run_random and std_run_random, but they are run-time failures, not compile time errors. </p> <p> For VC9, some of the tr1/random tests are marked as "expected failure". </p> <p> More information, please. </p> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Mon, 01 Nov 2010 12:24:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4777#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4777#comment:4</guid> <description> <p> Trunk: <a href="http://www.boost.org/development/tests/trunk/developer/tr1.html">http://www.boost.org/development/tests/trunk/developer/tr1.html</a> </p> <p> Each row involving random: run_random, std_run_random, std_test_random, test_random </p> <p> Each row fails to compile on &gt; 50% of the platforms, citing private typedefs as above. E.g., <a href="http://www.boost.org/development/tests/trunk/developer/output/MinGW-32%20jc-bell-com-boost-bin-v2-libs-tr1-test-run_random-test-gcc-mingw-4-4-0-debug.html">MinGW-32</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Sat, 27 Nov 2010 21:28:30 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4777#comment:5 https://svn.boost.org/trac10/ticket/4777#comment:5 <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/66803" title="Make result_type public. Fixes #4777.">[66803]</a>) Make result_type public. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4777" title="#4777: Bugs: tr1 random tests don't compile: private typedef in ... (closed: fixed)">#4777</a>. </p> Ticket