[llvm-bugs] [Bug 41118] New: Implementing DR1395

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 17 17:06:56 PDT 2019


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

            Bug ID: 41118
           Summary: Implementing DR1395
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++'17
          Assignee: unassignedclangbugs at nondot.org
          Reporter: stinkingmadgod at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

DR1395 made it in C++17.

template <class ...T> int f(T*...);  // #1
template <class T>  int f(const T&); // #2
f((int*)0); // Should select #1 past C++17, ambiguous prior C++17.

Current behaviour is to think it ambiguous https://godbolt.org/z/fBZvo0

-- 
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/20190318/2f9cd064/attachment.html>


More information about the llvm-bugs mailing list