[llvm-bugs] [Bug 42609] New: Uninitialized warning missing for use inside GNU C statement expression
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jul 12 14:12:17 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42609
Bug ID: 42609
Summary: Uninitialized warning missing for use inside GNU C
statement expression
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 example:
void init(int*);
void foo(void) {
int i = ({
int z = i; //Probably should be a warning here
init(&i);
i;
});
}
Setting a variable to i within i's own initializer should generate a 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/02fecccf/attachment.html>
More information about the llvm-bugs
mailing list