http://llvm.org/bugs/show_bug.cgi?id=15913
Bug ID: 15913
Summary: conversion of a string to unsigned long long
(ULLONG_MAX) fails.
Product: libc++
Version: 3.2
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
#include <iostream>
#include <sstream>
int main(int argc, char **argv)
{
std::string s = "00000000000000000001777777777777777777777";
std::istringstream ss(s);
unsigned long long value;
ss >> value;
std::cout.flags(std::ios::hex | std::ios::showbase);
std::cout << value;
}
$ clang++ -std=c++11 -stdlib=libc++ ./stringstreamtest.cpp
$ ./a.out
0xf6b75ab2bc471c71
Instead of expected
0xffffffffffffffff
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs