[LLVMbugs] [Bug 3675] New: potentially bogus error: " member of anonymous struct redeclares 'u'"
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Feb 26 23:28:40 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3675
Summary: potentially bogus error: "member of anonymous struct
redeclares 'u'"
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: kremenek at apple.com
CC: llvmbugs at cs.uiuc.edu
gcc-4.2 -fsyntax-only eats the following self-contained test case but clang
rejects it:
typedef struct _IRP {
union {
struct {
union {} u;
struct {
union {} u;
};
} Overlay;
} Tail;
} IRP;
This seemingly contrived test-case was reduced from actual code in Wine.
The error I see:
$ clang t.c
t.c:6:18: error: member of anonymous struct redeclares 'u'
union {} u;
^
t.c:4:16: note: previous declaration is here
union {} u;
^
2 diagnostics generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list