[LLVMbugs] [Bug 5856] New: [129.compress] clang rejects code which gcc accepts
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Dec 22 14:55:05 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=5856
Summary: [129.compress] clang rejects code which gcc accepts
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, dgregor at apple.com
Clang fails to build 129.compress from CINT95.
--
ddunbar at lordcrumb:tmp$ cat t.c
void f0() { char *rindex(); }
char *rindex(s, c) register char *s, c; { return 0; }
ddunbar at lordcrumb:tmp$ clang -c t.c
t.c:2:7: error: conflicting types for 'rindex'
char *rindex(s, c) register char *s, c; { return 0; }
^
t.c:1:19: note: previous declaration is here
void f0() { char *rindex(); }
^
2 diagnostics generated.
ddunbar at lordcrumb:tmp$ gcc -c t.c
t.c: In function 'rindex':
t.c:2: warning: argument 's' doesn't match built-in prototype
ddunbar at lordcrumb:tmp$
--
This appears due to be due to the way we handle builtins.
--
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