🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #787

Omission re static linkage

#787
From: Norman Diamond
Date: Thu, 19 Oct 1989 07:26
20 lines
1114 bytes
Consider the following program:

void f1() {
  extern void f3(void);  /* [1] */
}
void f2() {
  static void f3(void);  /* [2] */
}
static void f3() {       /* [3] */
}

According to section 3.1.2.2, declarations [1] and [3] refer to the
same identifier, and function f3 has internal linkage.  However, the
standard neglects to state what declaration [2] refers to.

-- 
Norman Diamond, Sony Corp. (diamond%ws.sony.junet@uunet.uu.net seems to work)
  Should the preceding opinions be caught or     |  James Bond asked his
  killed, the sender will disavow all knowledge  |  ATT rep for a source
  of their activities or whereabouts.            |  licence to "kill".
Technical Details
Message-ID: <10975@riks.csl.sony.co.jp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond
From: diamond@csl.sony.co.jp (Norman Diamond)
Newsgroups: comp.std.c
Subject: Omission re static linkage
Message-ID: <10975@riks.csl.sony.co.jp>
Date: 19 Oct 89 07:26:07 GMT
Reply-To: diamond@ws.sony.junet (Norman Diamond)
Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan
Lines: 20