[LLVMbugs] [Bug 12964] New: failure to compare convertible-to-__int128 with anything else

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 27 09:15:36 PDT 2012


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

             Bug #: 12964
           Summary: failure to compare convertible-to-__int128 with
                    anything else
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: roman at binarylife.net
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


$ cat test.cpp 
struct X { operator __int128() const; } x;
bool a=(x==__int128(0));
bool b=(x==0);

$ clang++ -c test.cpp 2>&1 | egrep error
test.cpp:2:10: error: use of overloaded operator '==' is ambiguous (with
operand types 'struct X' and '__int128')
test.cpp:3:10: error: use of overloaded operator '==' is ambiguous (with
operand types 'struct X' and 'int')
2 errors generated.

$ clang++ --version
clang version 3.2 (trunk 157514)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list