<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJzNVt-P2ygQ_mucF1TLwfEmefBD6k2qqNut1Oxd1acIw9jmlkAEeNP97ztgb9If2-2dTqerhMCYYebjm_mwayMey21DHk1PpOaqF0CSvOLGmt5LDS7J1-QkfUd8B-Td7s-K7O5uSO-kbglXTLevuEpoFR2cpFKkkx5tpSNgrbFJvkqy6yRbdd4fXZjRDbYWPfZ1ys0BJwfJrXGm8fiMzrGvlanDApMaB-cxwgbRYQ-fj2DlAbRn4eUZZ0LzG7ocQo39VTa2YUpz2RABDRqLhC72-4h-v0_okiT0ChsO068Mdtub9W213lc3q9s3--r9h_d_3G1v1_t3691u9WadnMPRPB6V3HWRu59CzNeBqB8tWtBgmQ9kRQumxTNWFlx_YLUKfkgHTIB1hPfWooF6JMIQbTxJimpA5frj0VhPqnDKlHzC9HCmRwLIrw5HvCFOKtAchmQewDnWQsTG-L02JwWiDYtsTDe2c_Bej-FBpBeStMAMDPn_bxLxXcZjv8WqmrvIjevt0cpYuRG2hhNRsrbMPpIGmO-RYuQRS27uycnY-6HwGRY1FuoR6bAu5KfucTk4OLB73DHwYyyQ3mIqfWBipAXQg7ahrj9KLczJpRvTa8G8NNql3ZjGJ-FhOr-S3eqFYt5q0iCcp42CNNYcQs1YEIwj66GS_r4l3fwcZtohlKsznH_or2YOoociv5zoe-Nwq-AwnaV0kdLlcpoNcg8BXpT8IkfLioYCyFfn--a30OH_Ib_nVff7XU34NFbndEgaGcNccD-n5I-AisWKQ26wODGED2iCyLjRjZLckxq8B_sEFKlRwBwShALHXUGugyAHdePZiWmih9p8xpKON8Lu-i15QO9RohNR5mKZL9mE9b4ztrT6ftJbVb7wOVPq4Wl4dbTmL-BBCdK5HmVNN0WeTbNJVxazGeV1kdXFLJsvWC6a-VxQXAOWNQteTBSrQbkyKV4nlAZk0QU-J8X15N8jkCXNaIhXTIt8XixSvlhyJuh0LopsxubTZJYBfoFVGvykxrYTW0aXdd86XFTSeXdZZM7JFhMUASNCL72Kk4N74PiCfABn1MO32ToB6MtfxQ8_HuP9GJIZhTSJZyjjAb4AUALU4w>53010</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [msvc] Resolve conflict between MSVC STL <coroutines> header and Clang
        </td>
    </tr>

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

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

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

<pre>
    If you include <coroutines> with the MSVC STL using clang-cl, you will hit this error:
https://github.com/microsoft/STL/blob/main/stl/inc/experimental/coroutine#L29

```
#if defined(__clang__) && !defined(_SILENCE_CLANG_COROUTINE_MESSAGE)
#error The <experimental/coroutine>, <experimental/generator>, and <experimental/resumable> headers currently do not \
support Clang. You can define _SILENCE_CLANG_COROUTINE_MESSAGE to silence this message and acknowledge that this is \
unsupported.
#endif // defined(__clang__) && !defined(_SILENCE_CLANG_COROUTINE_MESSAGE)
```

It's not surprising that new library features don't work with all compilers, but what makes this more urgent is that the winrt/Windows.Foundations.h header includes coroutines:

```
In file included from <redacted>
In file included from <redacted>/winrt/Windows.Foundation.h:6:
In file included from <redacted>/winrt/base.h:53:
<redacted>/MSVC/14.28.29910/include/experimental/coroutine(30,2): error: The <experimental/coroutine>, <experimental/generator>, and <experimental/resumable> headers currently do not support Clang. You can define _SILENCE_CLANG_COROUTINE_MESSAGE to silence this message and acknowledge that this is unsupported.
#error The <experimental/coroutine>, <experimental/generator>, and <experimental/resumable> headers currently do not \
 ^
1 error generated.
```

We need to understand the conflict better, and at least try to make winrt work out of the box in new SDK versions.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVU1v2zgQ_TXyhahgU5FtHXRwFbswmqZAnbboyaDIkcQNTRokFTf_vkNKsfuRZncPiy1AiJI4mnl88x5VG_FYbhvyaHoiNVe9AJJkFTfW9F5qcEm2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