[LLVMbugs] [Bug 23939] New: Accepts invalid when undeduced context encountered deducing from a trailing parameter pack

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 24 15:45:02 PDT 2015


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

            Bug ID: 23939
           Summary: Accepts invalid when undeduced context encountered
                    deducing from a trailing parameter pack
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hstong at ca.ibm.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

In the call to "f" from "h" below, the deduction for T at 1 should find both
"fptype" and "Func" and fail.

### SOURCE (<stdin>):
template <typename ...T> struct A;

void g();
void g(bool);

typedef void (*fptype)();
struct Func { operator fptype(); } func;

template<typename ...T> void f(A<T ...> *ap, T ...b);

void h(A<fptype, fptype> *ap) { f(ap, g, func); }


### COMPILER INVOCATION:
clang++ -std=c++11 -c -x c++ -


### ACTUAL OUTPUT:
(Clean compile).


### EXPECTED OUTPUT:
(Error message).


### COMPILER VERSION INFO:
clang version 3.7.0 (trunk)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/ppc64le-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/ppc64le-redhat-linux/4.8.3
Selected GCC installation: /usr/lib/gcc/ppc64le-redhat-linux/4.8.3
Candidate multilib: .;@m64
Selected multilib: .;@m64

-- 
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/20150624/bbd113b4/attachment.html>


More information about the llvm-bugs mailing list