[Boost-bugs] [Boost C++ Libraries] #6444: qi::lit(<char>) parses into a '\0' in 1.47 and 1.48

Subject: [Boost-bugs] [Boost C++ Libraries] #6444: qi::lit(<char>) parses into a '\0' in 1.47 and 1.48
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-24 20:15:21


#6444: qi::lit(<char>) parses into a '\0' in 1.47 and 1.48
--------------------------------+-------------------------------------------
 Reporter: mathstuf@… | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.48.0 | Severity: Regression
 Keywords: |
--------------------------------+-------------------------------------------
 In 1.46.0, qi::lit(<char>) would end up in the result. This changed in
 1.47.0 such that they were not parsed into the result (qi::char_ is to be
 used instead). However, NUL characters now show up in the resulting token.
 Example code and output attached.

 Synopsis:

 Parser:
 +(qi::alnum | qi::lit('-'))

 Input:
 "a-b-c"

 1.46.0:
 "a-b-c"

 1.47.0:
 "a\000b\000c"

 1.48.0:
 "a\000b\000c"

 The '\000' characters can be seen in gdb; std::ostream just shows "abc"
 instead.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6444>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC