Opened 7 years ago
Closed 7 years ago
#11474 closed Bugs (fixed)
qi real parser- valgrind error
Reported by: | Owned by: | Joel de Guzman | |
---|---|---|---|
Milestone: | To Be Determined | Component: | spirit |
Version: | Boost 1.59.0 | Severity: | Problem |
Keywords: | Cc: |
Description
i tried the boost 1.59 rc1 today and got in my software a regression which i could reduce a little bit to
test.cpp #include <boost/spirit/include/qi.hpp> #include <vector> #include <string> #include <iostream> using namespace boost::spirit::qi; int main(){
std::cout<<BOOST_LIB_VERSION<<std::endl;check that proper version is used std::string str="1.0,119,80,35,0,29.0,0.263,29,1"; std::vector<double> fileContents; phrase_parse(
str.begin(),str.end(),
double_ % ',',
space , fileContents
);
for(std::size_t j = 0; j != 9; ++j)
std::cout<<fileContents[j]<<" "<<std::flush;
}
find attached the boost 1.58 and 1.59 outputs of g++ and valgrind. if i compile my software in release mode, the above lines *sometimes* return wrong numbers.
duplicate: https://svn.boost.org/trac/boost/ticket/11475