[llvm-bugs] [Bug 26782] New: Assertion failed: TemplateTypeParm->getDepth() == 0 && "Can't deduce with depth > 0"

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 29 23:32:24 PST 2016


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

            Bug ID: 26782
           Summary: Assertion failed: TemplateTypeParm->getDepth() == 0 &&
                    "Can't deduce with depth > 0"
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yaron.keren at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

clang -c -std=c++11 ex.cpp
of:

  template <typename> class function;
  template <typename> struct function<void()> {
    template <typename _Functor> function(_Functor) {}
  };
  void fn1() {
    function<void()> f = [] {};
  }

results in Assertion failed: TemplateTypeParm->getDepth() == 0 && "Can't deduce
with depth > 0", file C:\llvm\tools\clang\lib\Sema\SemaTemplateDeduction.cpp,
line 1092

clang version 3.9.0 (trunk 262183)

-- 
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/20160301/7cdfc385/attachment.html>


More information about the llvm-bugs mailing list