Boost C++ Libraries: Ticket #9007: Spirt Int parser fails to detect overflow when using gcc 4.8 https://svn.boost.org/trac10/ticket/9007 <p> Attached test program that tries to parse a string containing INT_MAX+1. </p> <p> Expected the parser to fail. When compiled with gcc 4.8, instead it succeeds and returns MIN_INT. </p> <p> When compiled with gcc 4.7, 4,2 or clang 3.3, it behaves as expected. </p> <p> Sample output: </p> <pre class="wiki">$ ./Main.gcc48 sizeof(int): 4 Parsing '2147483647': parse success 2147483647 Parsing '2147483648': parse success -2147483648 $ ./Main.gcc47 sizeof(int): 4 Parsing '2147483647': parse success 2147483647 Parsing '2147483648': parse failed </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9007 Trac 1.4.3 cmoore@… Fri, 16 Aug 2013 14:30:41 GMT attachment set https://svn.boost.org/trac10/ticket/9007 https://svn.boost.org/trac10/ticket/9007 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">ticket-9007-testcase.cpp</span> </li> </ul> <p> test-case </p> Ticket Joel de Guzman Tue, 20 Aug 2013 05:25:22 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9007#comment:1 https://svn.boost.org/trac10/ticket/9007#comment:1 <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