<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-cl crash with -Z7 / -Zi, variable templates and expression SFINAE (regression in 8.0.0)"
   href="https://bugs.llvm.org/show_bug.cgi?id=41985">41985</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl crash with -Z7 / -Zi, variable templates and expression SFINAE (regression in 8.0.0)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>andreas.zapf@ableton.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21990" name="attach_21990" title="Error output with backtrace">attachment 21990</a> <a href="attachment.cgi?id=21990&action=edit" title="Error output with backtrace">[details]</a></span>
Error output with backtrace

template<typename T>
using void_t = void;

template <typename T, typename = void>
const bool has_m = false;

template <typename T>
const bool has_m<T, void_t<decltype(T().m())>> = true;

struct X
{
  int m() const
  {
    return 0;
  }
};

bool crash()
{
  return has_m<X>;
}

Compiler invocation: clang-cl -std:c++14 -c -Z7 (or -Zi)

This compiles fine with clang-cl 7.0.1. With clang-cl 8.0.0 it compiles when
the -Z? option is omitted.</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>