[llvm-bugs] [Bug 42610] New: No warning on use of uninitialized struct member

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 12 16:31:05 PDT 2019


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

            Bug ID: 42610
           Summary: No warning on use of uninitialized struct member
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nhuck15 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

Consider the following:

struct xy {
    int x;
    int y;
};

int main(void) {
    struct xy a;
    int x = a.x;
}

When compiled with -Wuninitialized there is no warning.

-- 
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/20190712/f810a698/attachment.html>


More information about the llvm-bugs mailing list