[LLVMbugs] [Bug 3588] New: merging with K&R declaration mismatch with gcc
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Feb 14 22:18:55 PST 2009
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: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list