[LLVMbugs] [Bug 2586] New: clang is less permissive than gcc in accepting function redefinitions

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jul 22 16:11:05 PDT 2008


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

           Summary: clang is less permissive than gcc in accepting function
                    redefinitions
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


gcc accepts the following code with a warning, whereas clang rejects
it.
--
void foo(void *);

foo(void *pfile) {
}
--
gcc even accepts
--
void foo(void *, int);

foo(void *pfile) {
}
--


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