<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 - front end crash when using variadic concepts requirement with "or" statement (trunk/11)"
   href="https://bugs.llvm.org/show_bug.cgi?id=48656">48656</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>front end crash when using variadic concepts requirement with "or" statement (trunk/11)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

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

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

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

        <tr>
          <th>Reporter</th>
          <td>ryan_greenblatt@brown.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=24341" name="attach_24341" title="crashes">attachment 24341</a> <a href="attachment.cgi?id=24341&action=edit" title="crashes">[details]</a></span>
crashes

This crash occurs on trunk and on 11 with `clang++ -std=c++20 FILENAME`.
I think I have a pretty minimal reproduction.

```
template <unsigned> struct A { static constexpr bool a = true; };

template <typename T>
concept BoolOrRequirement = requires {
  requires requires {
    // any requirement (outside of a few trivial ones)
    T::b;
  } || T::a;
};

template <BoolOrRequirement...>
struct B {};

int main() {
  // need at least 2 elements for crash, more elements seems to increase
  // consistancy of crash
  B<A<0>, A<1>, A<2>, A<3>, A<4>> value;
}
```

Here is a godbolt link: <a href="https://godbolt.org/z/vz7Wss">https://godbolt.org/z/vz7Wss</a>.
I have also attached the source file.</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>