https://bugs.llvm.org/show_bug.cgi?id=41516
Bug ID: 41516
Summary: -Wsign-conversion does not warn on uint64_t to int8_t,
int16_t, or int32_t implicit conversions
Product: clang
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Created attachment 21788
--> https://bugs.llvm.org/attachment.cgi?id=21788&action=edit
Program that does not raise sign conversion warning
Compile the attachment with
clang++ -std=c++17 -Wsign-conversion ./test.cpp -o test
Implicit signedness conversions form uint64_t to numerous integer types are not
warned. Only the conversion from uint64_t to int64_t is warned.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs