[llvm-bugs] [Bug 42103] New: Misses the use of the uninitialized variable

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jun 1 20:39:28 PDT 2019


            Bug ID: 42103
           Summary: Misses the use of the uninitialized variable
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: yuri at tsoft.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 22064
  --> https://bugs.llvm.org/attachment.cgi?id=22064&action=edit

In the attached testcase the variable 'p' is initialized only conditionally in
the 'else' branch of 'if', but it is used later and clang doesn't complain even
with -Wall.

FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin

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/20190602/1d4d2f21/attachment.html>

More information about the llvm-bugs mailing list