[LLVMbugs] [Bug 5089] New: extern inline problem
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Sep 28 12:11:34 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5089
Summary: extern inline problem
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
witten /tmp# cat toplev.c
extern inline int
floor_log2 (unsigned int x)
{
}
int
floor_log2 (unsigned int x)
{
}
witten /tmp# gcc -c toplev.c && echo yes
yes
witten /tmp# clang -c toplev.c && echo yes
toplev.c:4:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
toplev.c:7:1: error: redefinition of 'floor_log2'
floor_log2 (unsigned int x)
^
toplev.c:2:1: note: previous definition is here
floor_log2 (unsigned int x)
^
3 diagnostics generated.
--
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