Boost C++ Libraries: Ticket #10978: libs/coroutine/test_asymmetric_coroutine.cpp test violates C++ Standard https://svn.boost.org/trac10/ticket/10978 <ol><li>Description of the failure. </li></ol><p> On Solaris 11.2 Oracle Studio 12.4 C++ compiler produces the following error message for libs/coroutine/test/test_asymmetric_coroutine.cpp source. </p> <p> "test_asymmetric_coroutine.cpp", line 66: Error: "}" expected instead of ";". </p> <p> and actually it produces similar error message for small test like this: </p> <p> class moveable { </p> <blockquote> <p> private: ; </p> </blockquote> <p> } </p> <ol start="2"><li>Cause of the failure. </li></ol><p> This test violates C++ Standard ================== Chapter 9, abbreviated syntax productions. </p> <p> class-specifier: </p> <blockquote> <p> class-head { member-specfication[opt] } </p> </blockquote> <p> member-specification: </p> <blockquote> <p> member-declaration member-specification[opt] </p> </blockquote> <p> member-declaration: </p> <blockquote> <p> decl-specifier-seq[opt] member-declarator-list[opt] ; </p> </blockquote> <p> ==================== </p> <p> The syntax for member-declaration appears to allow a lone semi-colon, except for this requirement in Section 9.2p1: </p> <p> "... member-declarations declare members of the class, and each such member-declaration shall declare </p> <blockquote> <p> at least one member name of the class." </p> </blockquote> <ol start="3"><li>Possible Solution. </li></ol><ul><li>Remove the semicolon from line: </li></ul><blockquote> <blockquote> <p> BOOST_MOVABLE_BUT_NOT_COPYABLE( moveable); </p> </blockquote> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10978 Trac 1.4.3 Sergey.Sprogis@… Fri, 30 Jan 2015 20:17:55 GMT owner, component changed https://svn.boost.org/trac10/ticket/10978#comment:1 https://svn.boost.org/trac10/ticket/10978#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">René Rivera</span> to <span class="trac-author">olli</span> </li> <li><strong>component</strong> <span class="trac-field-old">Regression Testing</span> → <span class="trac-field-new">coroutine</span> </li> </ul> Ticket olli Fri, 30 Jan 2015 22:20:53 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10978#comment:2 https://svn.boost.org/trac10/ticket/10978#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> Ticket