https://bugs.llvm.org/show_bug.cgi?id=51522

            Bug ID: 51522
           Summary: C++ overload resolution is ambiguous for _ExtInt(8)
                    among primitive alternatives
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

See in Godbolt: https://godbolt.org/z/rf8YE63o8

Consider:

void out ( unsigned char data );
void out ( unsigned short data );
void out ( unsigned int data );

void foo ()
{
  unsigned _ExtInt(8) data;
  out(data);
}

Expected:

An _ExtInt(8) parameter would cause overload resolution to select the first
overload with an unsigned char parameter.

Current:

<source>:8:3: error: call to 'out' is ambiguous
  out(data);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to