[LLVMbugs] [Bug 20222] New: Erroneous overload resolution with multiple direct bases

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 6 18:34:32 PDT 2014


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

            Bug ID: 20222
           Summary: Erroneous overload resolution with multiple direct
                    bases
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kaballo86 at hotmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following snippet results in a static_assert failure, I believe the
overload resolution should be ambiguous instead:

    template <int I>
    struct int_ {};

    template <int I>
    void foo(int_<I>){ static_assert(I != 1, ""); }

    struct bar : int_<0>, int_<1> {};

    int main() {
      foo(bar{});
    }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140707/2a3f959c/attachment.html>


More information about the llvm-bugs mailing list