Re: tcc - first impression. Was: Baby X is bor nagain

Liste des GroupesRevenir à cl c  
Sujet : Re: tcc - first impression. Was: Baby X is bor nagain
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.c
Date : 01. Jul 2024, 23:09:16
Autres entêtes
Organisation : None to speak of
Message-ID : <87sewswyr7.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Gnus/5.13 (Gnus v5.13)
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
[...]
(Incidentally, the N3220 draft says that labels can be applied to either
statements or declarations, but the grammar doesn't seem to reflect
that.)
[...]

My mistake.  The grammar is consistent.

A compound-statement consists of a "{", zero or more block-items,
and a "}".

In C17 and earlier, a block-item is a declaration or a statement,
and a statement may optionally have a label.

In C23, a block-item is a declaration, an unlabeled-statement,
or a label.

This allows both labels on declarations and a label at the very
end of a compound-statement.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

Date Sujet#  Auteur
1 Jul 24 * tcc - first impression. Was: Baby X is bor nagain22Michael S
1 Jul 24 +- Re: tcc - first impression. Was: Baby X is bor nagain1Tim Rentsch
1 Jul 24 +* Re: tcc - first impression. Was: Baby X is bor nagain13Keith Thompson
1 Jul 24 i+- Re: tcc - first impression. Was: Baby X is bor nagain1Keith Thompson
2 Jul 24 i+* Re: tcc - first impression. Was: Baby X is bor nagain9Michael S
2 Jul 24 ii+* Re: tcc - first impression. Was: Baby X is bor nagain6bart
2 Jul 24 iii+* Re: tcc - first impression. Was: Baby X is bor nagain4Michael S
2 Jul 24 iiii+* Re: tcc - first impression. Was: Baby X is bor nagain2bart
2 Jul 24 iiiii`- Re: tcc - first impression. Was: Baby X is bor nagain1Michael S
3 Jul 24 iiii`- Re: tcc - first impression. Was: Baby X is bor nagain1Michael S
2 Jul 24 iii`- Re: tcc - first impression. Was: Baby X is bor nagain1Tim Rentsch
2 Jul 24 ii+- Re: tcc - first impression. Was: Baby X is bor nagain1Tim Rentsch
2 Jul 24 ii`- Re: tcc - first impression. Was: Baby X is bor nagain1James Kuyper
2 Jul 24 i`* Re: tcc - first impression. Was: Baby X is bor nagain2Malcolm McLean
2 Jul 24 i `- Re: tcc - first impression. Was: Baby X is bor nagain1Ben Bacarisse
2 Jul 24 +* Re: tcc - first impression. Was: Baby X is bor nagain6Michael S
2 Jul 24 i+* Re: tcc - first impression. Was: Baby X is bor nagain4Ben Bacarisse
2 Jul 24 ii`* Re: tcc - first impression. Was: Baby X is bor nagain3Michael S
2 Jul 24 ii `* Re: tcc - first impression. Was: Baby X is bor nagain2Ben Bacarisse
2 Jul 24 ii  `- Re: tcc - first impression. Was: Baby X is bor nagain1Michael S
3 Jul 24 i`- Re: tcc - first impression. Was: Baby X is bor nagain1Michael S
3 Jul 24 `- Re: tcc - first impression. Was: Baby X is bor nagain1Michael S

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal