Article View: comp.std.c
Article #2125Re: Static function prototypes and definitions
From: Paul Eggert
Date: Wed, 14 Oct 1992 19:06
Date: Wed, 14 Oct 1992 19:06
7 lines
754 bytes
754 bytes
To answer Miller's question, the program
void f(void) { void g(void); g(); }
static void g(void) { }
has undefined behavior because g has both external and internal linkage.
See ANSI C 3.1.2.2 (Linkages of Identifiers).
Technical Details
Message-ID:
<bjFLFApU@twinsun.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!elroy.jpl.nasa.gov!ucla-cs!twinsun!eggertReferences:
<1bcn2mINN680@news.aero.org> <bjEsPb0L@twinsun.com> <1992Oct13.011303.27314@nntpd.lkg.dec.com> <1bhhe5INNf8f@news.aero.org>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!elroy.jpl.nasa.gov!ucla-cs!twinsun!eggert From: eggert@twinsun.com (Paul Eggert) Subject: Re: Static function prototypes and definitions Message-ID: <bjFLFApU@twinsun.com> Sender: usenet@twinsun.com Nntp-Posting-Host: farside Organization: Twin Sun, Inc References: <1bcn2mINN680@news.aero.org> <bjEsPb0L@twinsun.com> <1992Oct13.011303.27314@nntpd.lkg.dec.com> <1bhhe5INNf8f@news.aero.org> Date: Wed, 14 Oct 1992 19:06:09 GMT Lines: 7