<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/67395>67395</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Clang frontend C++ crash with variadic templates in function args
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          brutalsavage
      </td>
    </tr>
</table>

<pre>
    To quickly reproduce: https://gcc.godbolt.org/z/E6ceGq5eP (assertion-trunk)

```cpp
#include <concepts>

template <typename... T>
void f1(bool B = (std::integral<T> ||...)) {
}
```

Compiling the above valid code crashes clang `clang++ -x c++ --std=c++20 `, crashes locally using clang-17.0 (a10019a), also on trunk with assertion (see godbolt link). Furthermore, GCC compiles the above code without any issue (see godbolt link)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0U81uozAQfhpzGQU5QwjhwCEhpdc99AWMPQFvjU1tk93s069wabeqtBICg2a--X4GEYIeLFHDygsrr5lY4uh80_slChPEXQyU9U49mhcHb4uWr-YBnmbv1CKJFWcYY5wDK84MO4bdIGU-ONU7E3PnB4bdH4bd01HS81tJP4DhSYRAPmpnd9Ev9pVhzfiV8fN2P_L3S87z9gULbaVZFAErWumspDkGVjx9bYs0zUbEVBIfM1kxUZ7n8PJZd3dawW3P8NQ7Z-ACrLiudEJUK_virG2kwQvDinbtAla1rGrzPF8ZYg2sumwTq-s3rl-ZtG6atdF2gDgSiN7dCe7CaAXSKQLpRRgpgDTCDrDqXA8MLwwvsPsN8uO4S8Su2zvytZZh-wlgnBTGPGAJ66yEsttXOU8W7znf1yIRb0GY4MBZSHbDLx1H-MwgOUAEW2ZgdEokh27xcSQ_OU8rxnPbgkzKKHwRliStiG6JIOwDdAgL_Qc0U02h6qIWGTX7Y11WvMYTz8ZGCOwllpzXN6VqxfcHuikpZN8fSFblKdMNcix4jUd-xD3yvJK3I1ZYcixVpcSNHThNQpvcmPu0Ll6WiDTHqqjLzIieTEgbjrj5jeuy-2at3_XLENiBGx1i-IcQdTTUtCmnm3c2klXQbvGkFN69vAuvhdISPnYwgLZwW6xMBgs_hGzxpvn2o-g4Ln0u3cSwW2duj93s3U-SkWGXJASGXVLxNwAA__-lTyM7">