[LLVMbugs] [Bug 1884] New: Incorrect redeclaration error with enum+int?

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Dec 28 12:51:10 PST 2007


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

           Summary: Incorrect redeclaration error with enum+int?
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Not sure if this is the right component.

gcc accepts the following code (in all modes, as far as I can tell):
char *func(int format);
enum Test {A=-1};
char *func(enum Test x);

However, clang does not accept this.  (I think clang is right here, but I don't
know the C standard that well.)

Found in the ffmpeg source code.


-- 
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