<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang crash in diagnostics in overload failure with non-type templates"
   href="https://bugs.llvm.org/show_bug.cgi?id=35649">35649</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crash in diagnostics in overload failure with non-type templates
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>spreis@yandex-team.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19541" name="attach_19541" title="The failing code">attachment 19541</a> <a href="attachment.cgi?id=19541&action=edit" title="The failing code">[details]</a></span>
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)
...</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>