[LLVMbugs] [Bug 1890] New: clang allows illegal redeclaration of function?

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 1 00:13:04 PST 2008


           Summary: clang allows illegal redeclaration of function?
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: AST
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu

int b(int c) {return 1;}

int f(float b) {
return 0;

void a(void){
int f(int (int));

I think this code should give a compile error.  Both gcc and the comeau c
compiler give an error on this code, but clang does not; instead, clang emits
code with an rather dangerous function cast.

Not sure if this is the right component.

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