Fix implict casting error and clang wrong reasoning #4

Merged
dalmurii merged 1 commit from kenter7317/aclspv:master into master 2026-05-22 15:37:18 +00:00
Contributor

Fix implict casting error and Clang wrong assumtion

Environment

OS: Windows 11 Education (25H2) x86_64   
Kernel: WIN32_NT 10.0.26200.8457   
CPU: AMD Ryzen 7 8845HS (16) @ 5.10 GHz   
GPU 1: NVIDIA GeForce RTX 4060 Laptop GPU @ 3.10 GHz (7.77 GiB)   
GPU 2: AMD Radeon(TM) Graphics (417.46 MiB)   
Compiler:
	Clang:
		clang version 22.1.6
		(https://github.com/llvm/llvm-project fc4aad7b5db3fff421df9a9637605b9ca5667881)
Generator:
	Ninja: 1.21.1
    (https://github.com/llvm/llvm-project fc4aad7b5db3fff421df9a9637605b9ca5667881)

Summary

Implict casting error

in C90, casting that is not mark on code is not allowed. then this pull request contain correction of that codes

in case of test/lifespan/compiler-run-multiple.c, test/lifespan/compiler-run.c
printf Format Specifier call's is produce essencely same error, then change Type Format Specifier

clang wrong reasoning

in Windows, DLL export works in two step, annotate to embed some symbol in DLL and annotate to use some symbol in DLL
but cause Clang reasoning works Locally on code, those step should be separately described, but it described in one time.
So this pull request has temporary deletion of impl

# Fix implict casting error and Clang wrong assumtion ## Environment ``` OS: Windows 11 Education (25H2) x86_64 Kernel: WIN32_NT 10.0.26200.8457 CPU: AMD Ryzen 7 8845HS (16) @ 5.10 GHz GPU 1: NVIDIA GeForce RTX 4060 Laptop GPU @ 3.10 GHz (7.77 GiB) GPU 2: AMD Radeon(TM) Graphics (417.46 MiB) Compiler: Clang: clang version 22.1.6 (https://github.com/llvm/llvm-project fc4aad7b5db3fff421df9a9637605b9ca5667881) Generator: Ninja: 1.21.1 (https://github.com/llvm/llvm-project fc4aad7b5db3fff421df9a9637605b9ca5667881) ``` ## Summary ### Implict casting error in C90, casting that is not mark on code is not allowed. then this pull request contain correction of that codes > in case of test/lifespan/compiler-run-multiple.c, test/lifespan/compiler-run.c > printf Format Specifier call's is produce essencely same error, then change Type Format Specifier ### clang wrong reasoning in Windows, DLL export works in two step, annotate to embed some symbol in DLL and annotate to use some symbol in DLL but cause Clang reasoning works Locally on code, those step should be separately described, but it described in one time. So this pull request has temporary deletion of impl
- implicit conversion error
 - redeclaration error
kenter7317 changed title from FIx implict casting error and clang wrong reasoning to Fix implict casting error and clang wrong reasoning 2026-05-22 15:35:50 +00:00
dalmurii merged commit e596bcc575 into master 2026-05-22 15:37:18 +00:00
dalmurii 2026-05-22 15:37:36 +00:00
Sign in to join this conversation.
No description provided.