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

           Summary: Inaccurate storage class for redeclaration of function
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=2456)
 --> (http://llvm.org/bugs/attachment.cgi?id=2456)
WIP

Testcase:
static void a(void);
void a(void) {};

Run through clang -emit-llvm, this should result in empty output; however, this
isn't the case with trunk clang.

The issue is basically that Sema::MergeFunctionDecl isn't taking into account
the requirements in C99 6.2.2p4 and p5, which taken together mean that "a"
should have internal linkage.

I've attached a patch, but I'm not really sure if it's correct.


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