<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - istream fails to parse long numeric string correctly"
   href="http://llvm.org/bugs/show_bug.cgi?id=15445">15445</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>istream fails to parse long numeric string correctly
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>hhinnant@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>john@johnmaddock.co.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following code fails as reading stops on the '+' character (but that's not
the bug, removing the '+' from the string still causes it to fail).

#include <sstream>
#include <cassert>

int main(int argc, char** argv)
{
   std::stringstream ss;
   ss <<
"3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651e+10";
   long double d;
   ss >> d;
   //char c = ss.get();
   assert(ss.rdbuf()->in_avail() == 0);
   return 0;
}

The rational for wanting to do this, is that we have both numeric constants and
test data expressed as a string - sometimes this is read into a multiprecision
type, and sometimes into a native type.

The failure is with SVN Trunk BTW.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>