Storage class conflicts and external linkage.

Doug Gwyn gwyn at smoke.BRL.MIL
Tue Aug 21 04:44:28 AEST 1990


In article <697 at garth.UUCP> baxter at 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.



More information about the Comp.std.c mailing list