[llvm-bugs] [Bug 41516] New: -Wsign-conversion does not warn on uint64_t to int8_t, int16_t, or int32_t implicit conversions

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 16 10:51:39 PDT 2019


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: unassignedclangbugs at nondot.org
          Reporter: jeffersoncarpenter2 at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190416/c3f1403b/attachment.html>


More information about the llvm-bugs mailing list