http://llvm.org/bugs/show_bug.cgi?id=15740
Bug ID: 15740
Summary: Long octals from strings using stringstreams
Product: libc++
Version: unspecified
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
The following works with libstdc++. Tested using current svn.
#include <sstream>
#include <cassert>
int main() {
std::stringstream ss;
long l;
// This works
ss.str("01777777777777777777777");
ss >> std::oct >> l;
assert(ss.fail());
// This doesn't work
ss.clear();
ss.str("0000000000000000001777777777777777777777");
ss >> std::oct >> l;
assert(ss.fail());
}
--
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