public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17573] New: redefinition of builtin generates error when K&R fn def used
@ 2004-09-20 22:00 bowdidge at apple dot com
  2004-09-20 22:39 ` [Bug c/17573] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bowdidge at apple dot com @ 2004-09-20 22:00 UTC (permalink / raw)
  To: gcc-bugs

The following code generates an error if a function is defined in K&R style, but not if the function is 
defined in ANSI C style:

extern float dremf ( float, float );

float
dremf(x, y)
        float x;
        float y;
{
  return 1.0;
}

On Apple's gcc-3.5-based compilers, the code generates an error or warning with the K&R C definition, 
but generates no error with the ANSI C function declaration.  The problem is reproducible on at least 
the 9/2 mainline, also with powerpc-apple-darwin.

-- 
           Summary: redefinition of builtin generates error when K&R fn def
                    used
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bowdidge at apple dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin
  GCC host triplet: powerpc-apple-darwin
GCC target triplet: powerpc-apple-darwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17573


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

end of thread, other threads:[~2004-09-20 23:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-20 22:00 [Bug c/17573] New: redefinition of builtin generates error when K&R fn def used bowdidge at apple dot com
2004-09-20 22:39 ` [Bug c/17573] " pinskia at gcc dot gnu dot org
2004-09-20 22:44 ` schwab at suse dot de
2004-09-20 23:11 ` jsm at polyomino dot org dot uk
2004-09-20 23:38 ` 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).