public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/15698] New: wrong error in presence of builtin fn + K&R declaration.
@ 2004-05-28 20:47 cgd at broadcom dot com
  2004-05-28 21:02 ` [Bug c/15698] " cgd at broadcom dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: cgd at broadcom dot com @ 2004-05-28 20:47 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-05-02 19:51 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-28 20:47 [Bug c/15698] New: wrong error in presence of builtin fn + K&R declaration cgd at broadcom dot com
2004-05-28 21:02 ` [Bug c/15698] " cgd at broadcom dot com
2004-05-28 22:18 ` [Bug c/15698] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-05-29  1:47 ` cgd at broadcom dot com
2004-06-01  2:00 ` wilson at gcc dot gnu dot org
2004-06-01  2:22 ` zack at gcc dot gnu dot org
2004-10-15 21:25 ` [Bug c/15698] [4.0 " jsm28 at gcc dot gnu dot org
2004-10-15 21:49 ` pinskia at gcc dot gnu dot org
2004-10-15 21:55 ` jsm at polyomino dot org dot uk
2005-04-21  5:01 ` [Bug c/15698] [4.0/4.1 Regression] no error in presence of broken " mmitchel at gcc dot gnu dot org
2005-04-30  0:02 ` jsm28 at gcc dot gnu dot org
2005-05-02  1:55 ` jsm28 at gcc dot gnu dot org
2005-05-02 19:39 ` cvs-commit at gcc dot gnu dot org
2005-05-02 19:45 ` cvs-commit at gcc dot gnu dot org
2005-05-02 19:51 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).