[llvm-bugs] [Bug 43821] New: Missed warning opportunity/sanitizef failure

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Oct 26 15:41:24 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43821

            Bug ID: 43821
           Summary: Missed warning opportunity/sanitizef failure
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: denis.yaroshevskij 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

This bug has been in my code and passed everything, -Werror -Wall and running
with asan.

https://gcc.godbolt.org/z/CSC4ra

Misplacing two parameters in a vector constructor is very common.

On Mac asan doesn't catch this (on linux it does - this is how this bug was
found, but a couple of month later)

I wondered if this is possible to warn on, given that it's very similar to
signed/unsigned casts.

Clang version: Apple clang version 11.0.0 (clang-1100.0.33.8)

-- 
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/20191026/b3c15211/attachment.html>


More information about the llvm-bugs mailing list