Ticket #12599: sigabrt_or_sigsegv.cpp

File sigabrt_or_sigsegv.cpp, 357 bytes (added by nicolas.dessart@…, 6 years ago)

sigabrt or sigsegv (see comments) with g++ 5.4.1 20160904 and boost 1.58

Line 
1#include <iostream>
2#include <limits>
3#include <cmath>
4#include <cfloat> // get a SIGSEGV instead of a SIGABRT if this line is commented
5#include <boost/spirit/include/karma.hpp>
6
7int main() {
8 std::string s;
9 std::back_insert_iterator<std::string> sink(s);
10 boost::spirit::karma::generate(sink, std::numeric_limits<double>::denorm_min());
11 return 0;
12}