https://bugs.llvm.org/show_bug.cgi?id=42625
Bug ID: 42625
Summary: Uninitialized warning missing for struct member access
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]
Probable duplicate of https://bugs.llvm.org/show_bug.cgi?id=42610
Consider the following
struct widget {
int x,y;
};
void bar_bad(void) {
struct widget my_widget = ({
int x = my_widget.x; // There should be a warning about x here
init2(&my_widget);
my_widget;
});
}
When compiled with -Wuninitialized there is no warning on x.
--
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