[Bug c/15698] New: wrong error in presence of builtin fn + K&R declaration.
cgd at broadcom dot com
gcc-bugzilla@gcc.gnu.org
Fri May 28 20:47:00 GMT 2004
trunk srcs as of 2004-05-27 00:00 UTC.
attachment compiled like "gcc x.c" produces error like:
x.c: In function `rindex':
x.c:16: error: argument 'a' doesn't match prototype
x.c:2: error: prototype declaration
whereas the actual prototype declaration is is built-in. I tried to
trim the test further, and that made it work as expected, producing:
x.c: In function `rindex':
x.c:16: error: argument 'a' doesn't match prototype
cc1: error: prototype declaration
--
Summary: wrong error in presence of builtin fn + K&R declaration.
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: cgd at broadcom dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: mips64-unknown-linux-gnu
GCC host triplet: mips64-unknown-linux-gnu
GCC target triplet: mips64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15698
More information about the Gcc-bugs
mailing list