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.cDate : 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.comvoid Void(void) { Void(); } /* The recursive call of the void */