Boost C++ Libraries: Ticket #6770: qi+lexer combination behaves differently when BOOST_SPIRIT_DEBUG is defined https://svn.boost.org/trac10/ticket/6770 <p> I have a (buggy) grammar, in the course of debugging which I discovered that my grammar passes and consumes all input if BOOST_SPIRIT_DEBUG is true, but does not consume all input if it is not enabled. An (apparently) equivalent version that does not use the lexer does not exhibit this behavior. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6770 Trac 1.4.3 Jeff Trull <edaskel@…> Fri, 06 Apr 2012 04:02:33 GMT attachment set https://svn.boost.org/trac10/ticket/6770 https://svn.boost.org/trac10/ticket/6770 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">debug_fail_testcase.cpp</span> </li> </ul> <p> Version with lexer, exhibiting variation </p> Ticket Jeff Trull <edaskel@…> Fri, 06 Apr 2012 04:02:56 GMT attachment set https://svn.boost.org/trac10/ticket/6770 https://svn.boost.org/trac10/ticket/6770 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">debug_fail_testcase.cpp.no_lexer</span> </li> </ul> <p> Version without lexer, no variation </p> Ticket Joel de Guzman Fri, 06 Apr 2012 04:08:10 GMT owner changed https://svn.boost.org/trac10/ticket/6770#comment:1 https://svn.boost.org/trac10/ticket/6770#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Joel de Guzman</span> to <span class="trac-author">Hartmut Kaiser</span> </li> </ul> Ticket edaskel@… Fri, 01 Feb 2013 23:57:36 GMT <link>https://svn.boost.org/trac10/ticket/6770#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6770#comment:2</guid> <description> <p> This issue is still present in Boost 1.52. </p> </description> <category>Ticket</category> </item> <item> <author>Jeff Trull <edaskel@…></author> <pubDate>Fri, 08 Feb 2013 00:13:48 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6770#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6770#comment:3</guid> <description> <p> I now believe this to be user error. Specifically, the correct guide to whether input has been consumed should be the iterator supplied to the parser, not the underlying iterator. So it is the lexer's output, not input, iterator I should be checking. </p> </description> <category>Ticket</category> </item> <item> <author>Jeff Trull <edaskel@…></author> <pubDate>Fri, 08 Feb 2013 00:15:01 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/6770 https://svn.boost.org/trac10/ticket/6770 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">debug_fail_testcase.cpp.corrected</span> </li> </ul> <p> A revised example using the lexer token iterator instead, which produces the expected output (and does not vary with BOOST_SPIRIT_DEBUG) </p> Ticket edaskel@… Thu, 22 Sep 2016 16:06:58 GMT <link>https://svn.boost.org/trac10/ticket/6770#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6770#comment:4</guid> <description> <p> To be clear, this bug can be closed :) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Mon, 19 Feb 2018 23:15:10 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6770#comment:5 https://svn.boost.org/trac10/ticket/6770#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> Ticket