http://llvm.org/bugs/show_bug.cgi?id=5986
Summary: Objective-C instance variable confused with builtin C
function
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Hi,
Clang sometimes confuses instance variables with C functions it thinks should
exist. A common ivar name is index, which also happens to be the name of a
standard string function. On Linux, this could result in the error shown below.
This does supposedly not happen on FreeBSD because index is not treated as
builtin there.
Making all for framework EtoileXML...
Compiling file ETXMLNode.m ...
clang: warning: argument unused during compilation: '-march=i686'
ETXMLNode.m:76:8: error: implicitly declaring C library function
'index' with type
'char *(char const *, int)'
while(index < count)
^
ETXMLNode.m:76:8: note: please include the header <strings.h> or
explicitly provide a declaration
for 'index'
Best regards,
Truls
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs