[LLVMbugs] [Bug 3341] New: clang gets confused by redefinition of extern inline functions.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Jan 16 07:34:28 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3341
Summary: clang gets confused by redefinition of extern inline
functions.
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bolzoni at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu
--->
/* from c torture. */
inline extern int foo () { return 0; }
inline extern int bar () { return 0; }
inline static int bar () { return foo(); }
---<
$ gcc -W -Wall -pedantic -c -o file.o file.c
no problem
$ clang file.c
20021120-1.c:4:19: error: redefinition of 'bar'
inline static int bar () { return foo(); }
^
20021120-1.c:3:19: note: previous definition is here
inline extern int bar () { return 0; }
^
2 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