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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs