http://llvm.org/bugs/show_bug.cgi?id=21715

            Bug ID: 21715
           Summary: 128-bit integers printing not supported in stl
                    implementation
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

---testcase---
#include <sstream>

int main() {
  std::ostringstream ss;
  __int128 i = 10;
  ss << i;
}

---errors---
i128.C:7:6: error: use of overloaded operator '<<' is ambiguous (with operand
types 'std::ostringstream' (aka 'basic_ostringstream<char>') and
      '__int128')
  ss << i;
  ~~ ^  ~
/usr/include/c++/v1/ostream:183:20: note: candidate function
    basic_ostream& operator<<(bool __n);
                   ^
/usr/include/c++/v1/ostream:184:20: note: candidate function
    basic_ostream& operator<<(short __n);
                   ^
/usr/include/c++/v1/ostream:185:20: note: candidate function
    basic_ostream& operator<<(unsigned short __n);
                   ^
/usr/include/c++/v1/ostream:186:20: note: candidate function
    basic_ostream& operator<<(int __n);
                   ^
/usr/include/c++/v1/ostream:187:20: note: candidate function
    basic_ostream& operator<<(unsigned int __n);

-- 
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

Reply via email to