[LLVMbugs] [Bug 3425] New: Inaccurate storage class for redeclaration of function
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Jan 27 05:48:27 PST 2009
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: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list