Boost C++ Libraries: Ticket #1763: wrong AST when parser_tag==0 https://svn.boost.org/trac10/ticket/1763 <p> Simple way to reproduce bug: </p> <ol><li>Change 1 to 0(zero) in line 43 of file \spirit\example\fundamental\tree_calc_grammar.hpp </li></ol><p> static const int integerID = <strong>1</strong>; =&gt; static const int integerID = <strong>0</strong>; </p> <ol start="2"><li>Build and run \spirit\example\fundamental\ast_calc.cpp example. </li></ol><ol start="3"><li>Enter some expression. For example, 2+3. </li></ol><p> There will be assert in line 68 of file ast_calc.cpp. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1763 Trac 1.4.3 Marshall Clow Mon, 14 Apr 2008 15:51:13 GMT component changed; owner set https://svn.boost.org/trac10/ticket/1763#comment:1 https://svn.boost.org/trac10/ticket/1763#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Joel de Guzman</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">spirit</span> </li> </ul> Ticket Hartmut Kaiser Tue, 30 Nov 2010 16:39:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1763#comment:2 https://svn.boost.org/trac10/ticket/1763#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> <p> This ticket is invalid as the code change explicitly violates one of the invariants of the Spirit AST tree code: all node ids have to be non-zero. The assertion is in place to make sure this invariant is observed. </p> Ticket