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: unassignedclangb...@nondot.org
Reporter: jeffersoncarpent...@gmail.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs