id summary reporter owner description type status milestone component version severity resolution keywords cc 5983 Stack overflow with Karma floating point generator matt.chambers42@… Hartmut Kaiser "This spirit code causes a stack overflow on MSVC 9 and seg fault on GCC 4.2.1 with boost 1.43 and trunk. {{{ #include #include using namespace std; template struct double12_policy : boost::spirit::karma::real_policies { // we want to generate up to 12 fractional digits static unsigned int precision(T) { return 12; } }; string to_string(double value) { using namespace boost::spirit::karma; typedef real_generator > double12_type; static const double12_type double12 = double12_type(); char buffer[256]; char* p = buffer; generate(p, double12, value); return string(&buffer[0], p); } int main() { cout << to_string(7.0714098800910119e-313); return 0; } }}}" Bugs closed To Be Determined spirit Boost Development Trunk Problem fixed karma stack overflow Joel de Guzman