Boost C++ Libraries: Ticket #9152: Classic Spirit parser does not handle negative exponents when patform does not support denormalized numbers. https://svn.boost.org/trac10/ticket/9152 <p> A classic Spirit parser has trouble parsing floating point values which have a negative exponent on platforms where has_denorm is false. The initial example from the Spirit documentation illustrates the problem (note, this is the example from the 1.8.5 documentation, tweaked for 1.54). </p> <pre class="wiki">markland@jute geir2 $ CC -I/cray/css/users/markland/boost_1_54_0 classic_numbers.cpp markland@jute geir2 $ ./a.out ///////////////////////////////////////////////////////// A comma separated list parser for Spirit... ///////////////////////////////////////////////////////// Give me a comma separated list of numbers. The numbers will be inserted in a vector of numbers Type [q or Q] to quit 1.5 ------------------------- Parsing succeeded 1.5 Parses OK: 0: 1.5 ------------------------- 1e-07 ------------------------- Parsing failed ------------------------- Bye... :-) </pre><p> This looks to be an issue in the negative_accumulate::add() function found in boost/spirit/home/classic/core/primitives/impl/numerics.ipp. </p> <p> The platform I have seen this fail on is using the Cray Compiling Environment version 8.x. I do not currently have a patch or a workaround. </p> <p> The Qi parser example appears to work for this example, even on the Cray platform. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9152 Trac 1.4.3 Matthew Markland <markland@…> Mon, 23 Sep 2013 14:48:35 GMT attachment set https://svn.boost.org/trac10/ticket/9152 https://svn.boost.org/trac10/ticket/9152 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">classic_numbers.cpp</span> </li> </ul> <p> The classic numbers parser from the Spirit documentation. </p> Ticket Matthew Markland <markland@…> Mon, 23 Sep 2013 14:49:10 GMT cc set https://svn.boost.org/trac10/ticket/9152#comment:1 https://svn.boost.org/trac10/ticket/9152#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">markland@…</span> added </li> </ul> Ticket Nikita Kniazev <nok.raven@…> Mon, 18 Dec 2017 16:16:30 GMT <link>https://svn.boost.org/trac10/ticket/9152#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9152#comment:2</guid> <description> <p> I am sorry, Spirit.Classic is deprecated. If you have a patch, please open a pull request, otherwise this will not be fixed. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Mon, 18 Dec 2017 23:27:18 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9152#comment:3 https://svn.boost.org/trac10/ticket/9152#comment:3 <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">wontfix</span> </li> </ul> Ticket