[LLVMbugs] [Bug 24012] New: -Wmissing-braces should look through unions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jul 1 10:36:26 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24012
Bug ID: 24012
Summary: -Wmissing-braces should look through unions
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
>From msdn:
typedef union _LARGE_INTEGER {
struct {
DWORD LowPart;
LONG HighPart;
};
struct {
DWORD LowPart;
LONG HighPart;
} u;
LONGLONG QuadPart;
} LARGE_INTEGER, *PLARGE_INTEGER;
With this, clang's -Wmissing-braces warns on
LARGE_INTEGER i = { 0, 0 };
but that looks like a sensible thing to write.
--
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/20150701/4a3ac1b9/attachment.html>
More information about the llvm-bugs
mailing list