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

           Summary: merging with K&R declaration mismatch with gcc
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


clang & gcc differ in how they treat the following code:
--
void g0(int, int);
void g0();
//void g0(int);

void f1() {
  g0(1, 2, 3);
}
--

clang merges the declarations so that g0 is g0() after the second declaration;
and therefore allows the commented out redefinition, and the call. gcc errors
on both.


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to