🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1615

typedef + extern

#1615
From: Sakari Jalovaara
Date: Tue, 21 Aug 1990 09:33
12 lines
798 bytes
Speaking of nits, how about this:

	typedef int x;

	void f () { extern int x; x = 5; }

Is the second declaration of "x" legal?

If it is, what linkage does "x" have?  3.1.2.2 would suggest that the
second declaration "has the same linkage as any visible declaration of
the identifier with file scope" -- i.e. none?
									++sja
Technical Details
Message-ID: <1990Aug21.083324.13542@santra.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!rex!samsung!think!mintaka!bloom-beacon!eru!luth!sunic!tut!funic!santra!santra!sja

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!rex!samsung!think!mintaka!bloom-beacon!eru!luth!sunic!tut!funic!santra!santra!sja
From: sja@sirius.hut.fi (Sakari Jalovaara)
Newsgroups: comp.std.c
Subject: typedef + extern
Message-ID: <1990Aug21.083324.13542@santra.uucp>
Date: 21 Aug 90 09:33:01 GMT
Sender: news@santra.uucp (Cnews - USENET news system)
Organization: Helsinki University of Technology
Lines: 12