[llvm-bugs] [Bug 35649] New: clang crash in diagnostics in overload failure with non-type templates

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 12 21:06:38 PST 2017


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

            Bug ID: 35649
           Summary: clang crash in diagnostics in overload failure with
                    non-type templates
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: spreis at yandex-team.ru
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 19541
  --> https://bugs.llvm.org/attachment.cgi?id=19541&action=edit
The failing code

Compilation of the attached code crashes with the following diagnostics:

[=]clang++ -std=c++14 test.cpp -I`pwd`/LLVM/libcxx/include

test.cpp:84:5: error: no matching function for call to
      'SerializeWithSwitchersImpl'
    SerializeWithSwitchersImpl(
    ^~~~~~~~~~~~~~~~~~~~~~~~~~
#0 0x00000000019dd014 PrintStackTraceSignalHandler(void*)
(/place/home/spreis/.ya/tools/v3/168054294/bin/clang-5.0+0x19dd014)
#1 0x00000000019dd2d6 SignalHandler(int)
(/place/home/spreis/.ya/tools/v3/168054294/bin/clang-5.0+0x19dd2d6)
#2 0x00007f40573ec330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x0000000002af3ef2 DiagnoseBadDeduction(clang::Sema&, clang::NamedDecl*,
clang::Decl*, clang::DeductionFailureInfo&, unsigned int, bool)
(/place/home/spreis/.ya/tools/v3/168054294/bin/clang-5.0+0x2af3ef2)
#4 0x0000000002adfad5 clang::OverloadCandidateSet::NoteCandidates(clang::Sema&,
clang::OverloadCandidateDisplayKind, llvm::ArrayRef<clang::Expr*>,
llvm::StringRef, clang::SourceLocation, llvm::function_ref<bool
(clang::OverloadCandidate&)>)
(/place/home/spreis/.ya/tools/v3/168054294/bin/clang-5.0+0x2adfad5)
...

-- 
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/20171213/59c43669/attachment.html>


More information about the llvm-bugs mailing list