Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   Re: Initialization (http://www.velocityreviews.com/forums/t956863-re-initialization.html)

Eric Sosman 01-24-2013 03:01 AM

Re: Initialization
 
On 1/23/2013 9:03 PM, Russell Shaw wrote:
> Hi,
> In gcc-4.7 C99, this gets accepted in a block scope:
>
> static int a = 1;
>
>
> ISO/IEC 9899:201x 6.7.8p5 says:
>
> If the declaration of an identifier has block scope, and the identifier
> has external or internal linkage, the declaration shall have no
> initializer for the identifier.


The identifier `a' has no linkage (6.2.2p6).

--
Eric Sosman
esosman@comcast-dot-net.invalid


All times are GMT. The time now is 06:11 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.