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

    <tr>
        <th>Summary</th>
        <td>
            [clang-cl][Windows] consteval compilation error occurs when compiling the open source third-party library fmt
        </td>
    </tr>

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

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

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

<pre>
    Clang version: 20.1.5

When compiling the open source third-party library fmt, support for c++20 was set, but consteval compilation errors still occurred. The Clang used is already the latest version。

1,The following is the compilation error code snippet:

<img width="612" alt="Image" src="https://github.com/user-attachments/assets/41a63901-8abd-4366-9107-3c893ea610a4" />

<img width="702" alt="Image" src="https://github.com/user-attachments/assets/cb667ffe-b7f9-4908-aa8c-cf6442978d7a" />

<img width="689" alt="Image" src="https://github.com/user-attachments/assets/78102ad1-7972-4245-9256-e187639af548" />

<img width="678" alt="Image" src="https://github.com/user-attachments/assets/4d56204c-314c-4810-873b-69474e884218" />

<img width="683" alt="Image" src="https://github.com/user-attachments/assets/ee2beb67-30dd-40a7-8fec-370799ffdbf1" />

2,The error message:

![Image](https://github.com/user-attachments/assets/139bfc19-83bd-4ae2-b156-360cda27005b)

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0lE-P4ygQxT8NuSAiKDB_Dj4k6Y6095XmjKEcMyJ2BLiz_e1XTnp2tbvamdFIfbKNqKrfc-k9X2u6zIg96Y6ke9n5tU1L6b8mP1_-SPPkJ78blvjen7KfL_QNS03LTOSBAt-LfUf4gfDDlwlnGpbrLeU0X2ibkC43nGld1hKQtimVyG6-tHea01B8eafjtRE40brebktpdFwKDQSOBI7A6d1XWvFxYVgbDctcG775_DHDt7TMFEtZSqW1pZzpEsJaCsY9_X1C-oRdK0aaKvW5oI_vD6zsG9b2l45XSSwnFp4yBHk9k-OJ2NPWZFxyXu6bnlQftf8ZTsMSkdY53W7YPmrd4dmLyFO6Xug9xTYR-UIAtAACQH1uz-_frv6C20kt4XkytXarRB4InAmcL6lN67APy5XAea1YmG_Nh-mKc6sEzr5WfLwo4bV0XDDrh8iU1Jo5wQ2TwTqJXgvu1TZnaytf_w_P8E_CC4PWZhyRDWZ0TDlumfc2sDBqpcAZG43_MZ627nPwjBUcfBTMOANMgeqYg04zFNZo6fzYKfsTeMZ-0nJjp4GrwKRQgSkrOLNGDkw7ZRRaq0D8DJ6Vn4OHCAMO2jDJY2SKe8PsiIFJw41z4xiHUfwbD_5hs6eTrljrhiS_2QcE6Y5PzO6FgP1FPiHdMAbhmJWbNzwCG0SnmdQ8RA-G824g4Ag_7GIvo5PO77AXRlnQQgjYTX30NloVZTAooh0dH8CCMaik9kp0cpd64NDxbnM477jbazsIZz1ErXX0aiCK49WnvM_57bpfymWXal2xF0ooC7vsB8z1WwKXfrvFhvVSieI51Vb_rmup5UdWhy3hWMjbz-mOX9Icl3sl3cv3svIZkpXefymtd2vJ_Xe2sDF-PNitLF8xNALnh9DHIp5a33r4MwAA__9suff9">