Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers LCC > Re: lcc and c99...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 21 Topic 977 of 1070
Post > Topic >>

Re: lcc and c99 conformance

by Ben Bacarisse <ben.usenet@[EMAIL PROTECTED] > Oct 14, 2007 at 11:15 PM

jacob navia <jacob@[EMAIL PROTECTED]
> writes:

> Ben Bacarisse wrote:
>> #include <stdio.h>
>>
>> int main(void)
>> {
>>      for (static int i = 0; i < 10; i++)
>> 	  printf("%d\n", i);
>> }
>
> The standard says:
> <quote>
<snip>
> <end quote>
>
> Nowhere it is specified that the variables mustn't be static...

in 6.8.5 p3:

  "The declaration part of a for statement shall only declare
  identifiers for objects having storage class auto or register."

This is from n1124.pdf.  I do not have printed copies of the standard
and various TCs so I can't tell you if this is in the 1999 printed
standard or comes from some later TC.

-- 
Ben.
 




 21 Posts in Topic:
lcc and c99 conformance
"Wade Ward" <  2007-09-10 04:24:34 
Re: lcc and c99 conformance
"Antoine Leca"   2007-09-12 14:43:51 
Re: lcc and c99 conformance
jacob navia <jacob@[EM  2007-09-12 15:06:48 
Re: lcc and c99 conformance
"Antoine Leca"   2007-09-12 19:13:44 
Re: lcc and c99 conformance
"Wade Ward" <  2007-09-12 17:11:38 
Re: lcc and c99 conformance
jacob navia <jacob@[EM  2007-09-12 15:05:22 
Re: lcc and c99 conformance
"Wade Ward" <  2007-09-12 17:22:09 
Re: lcc and c99 conformance
Ben Bacarisse <ben.use  2007-10-14 19:03:20 
Re: lcc and c99 conformance
jacob navia <jacob@[EM  2007-10-14 20:21:16 
Re: lcc and c99 conformance
CBFalconer <cbfalconer  2007-10-14 20:45:58 
Re: lcc and c99 conformance
jacob navia <jacob@[EM  2007-10-14 20:45:49 
Re: lcc and c99 conformance
"Charlie Gordon"  2007-10-15 13:14:47 
Re: lcc and c99 conformance
Ben Bacarisse <ben.use  2007-10-14 23:15:08 
Re: lcc and c99 conformance
"Antoine Leca"   2007-10-15 17:51:03 
Re: lcc and c99 conformance
Ben Bacarisse <ben.use  2007-10-14 23:51:23 
Re: lcc and c99 conformance
"Antoine Leca"   2007-10-15 17:38:29 
Re: lcc and c99 conformance
jacob navia <jacob@[EM  2007-10-15 18:03:07 
Re: lcc and c99 conformance
Ben Bacarisse <ben.use  2007-10-15 12:43:44 
Re: lcc and c99 conformance
"Charlie Gordon"  2007-10-15 17:17:43 
Re: lcc and c99 conformance
Ben Bacarisse <ben.use  2007-10-15 18:31:06 
Re: lcc and c99 conformance
Ben Bacarisse <ben.use  2007-10-15 18:44:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 23:53:47 CDT 2008.