[LLVMbugs] [Bug 21865] New: [fuzz] Assertion `TemplateTypeParm->getDepth() == 0 && "Can't deduce with depth > 0"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 10 14:13:19 PST 2014


            Bug ID: 21865
           Summary: [fuzz] Assertion `TemplateTypeParm->getDepth() == 0 &&
                    "Can't deduce with depth > 0"' failed.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sami.liedes at iki.fi
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13506
  --> http://llvm.org/bugs/attachment.cgi?id=13506&action=edit
test case

Fuzzing discovered that the attached test case, when given as input to

  clang -fno-crash-diagnostics -std=c++11 -xc++ -c -emit-llvm

causes this assertion failure:

clang-3.6: tools/clang/lib/Sema/SemaTemplateDeduction.cpp:1128:
Sema::TemplateDeductionResult DeduceTemplateArgumentsByTypeMatch(clang::Sema &,
clang::TemplateParameterList *, clang::QualType, clang::QualType,
clang::sema::TemplateDeductionInfo &,
SmallVectorImpl<clang::DeducedTemplateArgument> &, unsigned int, bool,
SmallVectorImpl<RefParamPartialOrderingComparison> *): Assertion
`TemplateTypeParm->getDepth() == 0 && "Can't deduce with depth > 0"' failed.

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/20141210/a24f3b91/attachment.html>

More information about the llvm-bugs mailing list