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

    <tr>
        <th>Summary</th>
        <td>
            Clang frontend command failed due to signal crash for C++20
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    # What I did

1. Clone [my repo](https://github.com/neshkeev/cppipe): `git clone git@github.com:neshkeev/cppipe.git`
2. Go to the local repository: `cd cppipe`
3. Create a build directory: `mkdir build`
4. Go to the build directory: `cd build`
5. Execute `cmake .. -DCMAKE_CXX_COMPILER=clang`
6. Execute `cmake --build .`

# What happened
Clang crushed while trying to compile the project.
The crash backtrace, preprocessed source and associated run script are in the attached zip archive 
[clang-crush.zip](https://github.com/llvm/llvm-project/files/8401041/clang-crush.zip)

# What is expected

Both `MSVC v143` and `GCC 10.3.0` compile the project successfully so should clang.

# Environment

```bash
$ clang --version
clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal

$ uname -a
Linux DESKTOP-Q41M2JC 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
```
Clang also crushed on **macOS MontereymacOS Monterey**
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVVVtvozgU_jXk5QgEhqTJQx5S0qm600y7k3Y6b5UxTvDW2MiXTLO_fo-BdNNOpdUmyDbnfvmOqXR9XEYkh6eGOriBWtRRuo7S1bBmCZRSKw7R9LI9guGdjqbriMwb5zob5auIfMFnL1zjq4TpFl8Ut80L5wc8sq4THY_IAiU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