<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/96382>96382</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Warnings on msvc headers when not in msvc environment
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
trcrsired
</td>
</tr>
</table>
<pre>
https://github.com/trcrsired/windows-msvc-cross-runtimes/tree/main
```cpp
D:\msys64\home\unlvs\projects\fast_io\examples\0001.helloworld>clang++ -o helloworld.exe helloworld.cc -Ofast -std=c++26 --target=x86_64-windows-msvc -I../../include -flto=thin -ID:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include -LD:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\lib\x86_64-windows-msvc -fuse-ld=lld -D_DLL=1 -lmsvcrt -Wall -Wextra
In file included from helloworld.cc:1:
In file included from ../../include/fast_io.h:9:
In file included from ../../include/fast_io_hosted.h:18:
In file included from ../../include/fast_io_freestanding.h:12:
In file included from ../../include/fast_io_core.h:17:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/bit:14:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/__msvc_bit_utils.hpp:14:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/intrin.h:35:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/immintrin.h:30:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/wmmintrin.h:31:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/nmmintrin.h:32:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/smmintrin.h:32:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/tmmintrin.h:25:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/pmmintrin.h:34:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/emmintrin.h:38:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/xmmintrin.h:46:
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/mmintrin.h:34:26: warning: __declspec attribute 'intrin_type' is not supported [-Wignored-attributes]
34 | typedef union __declspec(intrin_type) __declspec(align(8)) __m64
| ^~~~~~~~~~~
In file included from helloworld.cc:1:
In file included from ../../include/fast_io.h:9:
In file included from ../../include/fast_io_hosted.h:18:
In file included from ../../include/fast_io_freestanding.h:12:
In file included from ../../include/fast_io_core.h:17:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/bit:14:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/__msvc_bit_utils.hpp:14:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/intrin.h:35:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/immintrin.h:30:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/wmmintrin.h:31:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/nmmintrin.h:32:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/smmintrin.h:32:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/tmmintrin.h:25:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/pmmintrin.h:34:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/emmintrin.h:38:
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/xmmintrin.h:65:26: warning: __declspec attribute 'intrin_type' is not supported [-Wignored-attributes]
65 | typedef union __declspec(intrin_type) __declspec(align(16)) __m128 {
| ^~~~~~~~~~~
In file included from helloworld.cc:1:
In file included from ../../include/fast_io.h:9:
In file included from ../../include/fast_io_hosted.h:18:
In file included from ../../include/fast_io_freestanding.h:12:
In file included from ../../include/fast_io_core.h:17:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/bit:14:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/__msvc_bit_utils.hpp:14:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/intrin.h:35:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/immintrin.h:30:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/wmmintrin.h:31:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/nmmintrin.h:32:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/smmintrin.h:32:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/tmmintrin.h:25:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/pmmintrin.h:34:
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/emmintrin.h:40:26: warning: __declspec attribute 'intrin_type' is not supported [-Wignored-attributes]
40 | typedef union __declspec(intrin_type) __declspec(align(16)) __m128i {
| ^~~~~~~~~~~
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/emmintrin.h:51:27: warning: __declspec attribute 'intrin_type' is not supported [-Wignored-attributes]
51 | typedef struct __declspec(intrin_type) __declspec(align(16)) __m128d {
| ^~~~~~~~~~~
In file included from helloworld.cc:1:
In file included from ../../include/fast_io.h:9:
In file included from ../../include/fast_io_hosted.h:18:
In file included from ../../include/fast_io_freestanding.h:12:
In file included from ../../include/fast_io_core.h:17:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/bit:14:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/__msvc_bit_utils.hpp:14:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/intrin.h:35:
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/immintrin.h:39:26: warning: __declspec attribute 'intrin_type' is not supported [-Wignored-attributes]
39 | typedef union __declspec(intrin_type) __declspec(align(32)) __m256 {
| ^~~~~~~~~~~
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/immintrin.h:43:27: warning: __declspec attribute 'intrin_type' is not supported [-Wignored-attributes]
43 | typedef struct __declspec(intrin_type) __declspec(align(32)) __m256d {
| ^~~~~~~~~~~
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/immintrin.h:47:27: warning: __declspec attribute 'intrin_type' is not supported [-Wignored-attributes]
47 | typedef union __declspec(intrin_type) __declspec(align(32)) __m256i {
| ^~~~~~~~~~~
In file included from helloworld.cc:1:
In file included from ../../include/fast_io.h:9:
In file included from ../../include/fast_io_hosted.h:18:
In file included from ../../include/fast_io_freestanding.h:12:
In file included from ../../include/fast_io_core.h:17:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/bit:14:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/__msvc_bit_utils.hpp:14:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/intrin.h:35:
In file included from D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/immintrin.h:2511:
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/zmmintrin.h:47:26: warning: __declspec attribute 'intrin_type' is not supported [-Wignored-attributes]
47 | typedef union __declspec(intrin_type) __declspec(align(64)) __m512 {
| ^~~~~~~~~~~
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/zmmintrin.h:51:27: warning: __declspec attribute 'intrin_type' is not supported [-Wignored-attributes]
51 | typedef struct __declspec(intrin_type) __declspec(align(64)) __m512d {
| ^~~~~~~~~~~
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/zmmintrin.h:55:27: warning: __declspec attribute 'intrin_type' is not supported [-Wignored-attributes]
55 | typedef union __declspec(intrin_type) __declspec(align(64)) __m512i {
| ^~~~~~~~~~~
In file included from helloworld.cc:1:
In file included from ../../include/fast_io.h:9:
In file included from ../../include/fast_io_hosted.h:18:
In file included from ../../include/fast_io_freestanding.h:12:
In file included from ../../include/fast_io_core.h:18:
D:\msys64\home\unlvs\projects\windows-msvc-cross-runtimes\include/limits:883:16: warning: use of NaN is undefined behavior due to the currently enabled floating-point options [-Wnan-infinity-disabled]
883 | return __builtin_nanf("0");
| ^~~~~~~~~~~~~~~~~~~
11 warnings generated.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWk1vozoU_TXOxnIEBvOxyKJNJtJIo3nLLiODL8FPxka2adpZvN_-ROi0pVO1fa8JkWZAVZvG9r3Hh8s9hwTunNxrgBVi14htFrzztbErb0vrpAWxKIy4X6Fgg4Kr2vvWoegK0S2i2730dVcsS9Mgun2cj-j2ILUwB0cad1uS0hrniO20lw2440wARLcNl3qIipJg-Cnbdnhn0-dg68bduyRGbF2bBhBbd1rdOsTWrTV_Q-n7lxV3ficNYmu4402roH8zCIJwWYNS5mCsEij6Uiqu94heI3qNicFPY0u4g-f_liUmf_VBMXFeoGhTDqtoggnx3O7Bo2hzlyW7JCbP94nJ1-US0e3xl9Sl6gRgUilvULTxtdSYfP34tt5ikK0fw387VUQlC8TWr26r6hyQnsSNUgKTzW7z7RuKNiEmqp9gPSY3XClMbuDOWz6cwK8aV1IBfkAqcGVNM-YZRVdhj_6N-b8Qiuj24YQvaxRd5f9__a42zoM4hgmzT8SpLIDzXAup90M0-olopbEwREnfiXLiWkJ0W0jfJ44nT7zb9TN2hfS7zkvllnXbXgaJ1N5KfTwBEZs-e9M8BxBMDuAwBvDe5Xl6AHoM4L0r6fQA3KUB-BEAOn0RtmMGpr8GYQzgvd58egB3IwBx8gjg9Kl-5Zr26fCBWy31vn-52wkolWuhxNx7K4vOA0Y0HRbu_H0LiKZYOqyNx65rW2M9CIzYNbmRe20sCPK40iG2GTaDMY5ijNI17kMIqHCnpdHP8iGajZLk4zGu5F4jmmWI5sNgk8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