| Issue |
185457
|
| Summary |
clang-x64 windows-msvc / intrin.h error: conflicting types for '__readcr0'/'__readcr2'/'__readdr'/'__writecr0'/'__writedr'
|
| Labels |
|
| Assignees |
|
| Reporter |
marakew
|
```
In file included from D:/msvc/VC/Tools/MSVC/14.51.36014/include\string:10:
In file included from D:/msvc/VC/Tools/MSVC/14.51.36014/include\xstring:11:
In file included from D:/msvc/VC/Tools/MSVC/14.51.36014/include\__msvc_string_view.hpp:12:
In file included from D:/msvc/VC/Tools/MSVC/14.51.36014/include\iosfwd:13:
In file included from D:/msvc/VC/Tools/MSVC/14.51.36014/include\cwchar:12:
In file included from D:/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt\wchar.h:29:
D:/LLVM-22.1.0-win64/lib/clang/22/include\intrin.h:98:15: error: conflicting types for '__readcr0'
98 | unsigned long __readcr0(void);
| ^
D:\msvc\VC\Tools\MSVC\14.51.36014\include\intrin.h:231:31: note: previous declaration is here
231 | __MACHINEX64(unsigned __int64 __readcr0(void))
| ~~~~~~~~ ^
D:/LLVM-22.1.0-win64/lib/clang/22/include\intrin.h:99:15: error: conflicting types for '__readcr2'
99 | unsigned long __readcr2(void);
| ^
D:\msvc\VC\Tools\MSVC\14.51.36014\include\intrin.h:233:31: note: previous declaration is here
233 | __MACHINEX64(unsigned __int64 __readcr2(void))
| ~~~~~~~~ ^
D:/LLVM-22.1.0-win64/lib/clang/22/include\intrin.h:103:14: error: conflicting types for '__readdr'
103 | unsigned int __readdr(unsigned int);
| ^
D:\msvc\VC\Tools\MSVC\14.51.36014\include\intrin.h:241:31: note: previous declaration is here
241 | __MACHINEX64(unsigned __int64 __readdr(unsigned int))
| ~~~~~~~~ ^
D:/LLVM-22.1.0-win64/lib/clang/22/include\intrin.h:129:6: error: conflicting types for '__writecr0'
129 | void __writecr0(unsigned int);
| ^
D:\msvc\VC\Tools\MSVC\14.51.36014\include\intrin.h:296:19: note: previous declaration is here
296 | __MACHINEX64(void __writecr0(unsigned __int64))
| ^
D:/LLVM-22.1.0-win64/lib/clang/22/include\intrin.h:133:6: error: conflicting types for '__writedr'
133 | void __writedr(unsigned int, unsigned int);
| ^
D:\msvc\VC\Tools\MSVC\14.51.36014\include\intrin.h:306:19: note: previous declaration is here
306 | __MACHINEX64(void __writedr(unsigned int, unsigned __int64))
| ^
```
there are needs fix like this https://github.com/llvm/llvm-project/pull/122238
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs