Article View: comp.std.c
Article #1613Re: Storage class conflicts and external linkage.
From: Doug Gwyn
Date: Mon, 20 Aug 1990 18:44
Date: Mon, 20 Aug 1990 18:44
21 lines
932 bytes
932 bytes
In article <697@garth.UUCP> baxter@garth.UUCP (Bill Baxter) writes:
- foo ( )
- {
- extern void foo1( void );
- }
- static
- foo1( )
- {
- }
The first declaration of "foo1" gives it external linkage, the second
gives it internal linakge, thus the behavior is explicitly undefined.
- However, the declaration only has block scope.
That's not relevant. Linkage does not track scope.
- In response to these questions I would like specific references to the
- Draft standard.
3.1.2.2.
Technical Details
Message-ID:
<13628@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwynReferences:
<697@garth.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: Storage class conflicts and external linkage. Message-ID: <13628@smoke.BRL.MIL> Date: 20 Aug 90 18:44:28 GMT References: <697@garth.UUCP> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 21