[LLVMbugs] [Bug 4092] New: spurious diagnostic following duplicate field definition

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Apr 27 10:33:16 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4092

           Summary: spurious diagnostic following duplicate field definition
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


The "incomplete result type" error below should be avoided:
--
ddunbar at 67-218-106-103:tmp$ cat t.c
struct s0 {
  char a;
  char a;
};

struct s0 f0(void) {}
ddunbar at 67-218-106-103:tmp$ clang-cc t.c
t.c:3:8: error: duplicate member 'a'
  char a;
       ^
t.c:2:8: note: previous declaration is here
  char a;
       ^
t.c:6:11: error: incomplete result type 'struct s0' in function definition
struct s0 f0(void) {}
          ^
3 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