[LLVMbugs] [Bug 19083] New: Weird (likely bugged) error diagnostic when reusing builtin name
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Mar 8 03:48:28 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=19083
Bug ID: 19083
Summary: Weird (likely bugged) error diagnostic when reusing
builtin name
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: abramo.bagnara at bugseng.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat z.c
int printf;
$ clang -c z.c
z.c:1:5: error: redefinition of 'printf' as different kind of symbol
int printf;
^
z.c:1:5: note: previous definition is here
1 error generated.
The message about previous definition is definitely misleading.
That apart I'm not sure that to treat this as a fatal error is the right thing
to do.
FWIW:
$ gcc -c z.c
z.c:1:5: warning: built-in function ‘printf’ declared as non-function [enabled
by default]
int printf;
^
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140308/0fb41c6b/attachment.html>
More information about the llvm-bugs
mailing list