Deutsch   English   Français   Italiano  
<87a58pq9ig.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: "A diagram of C23 basic types"
Date: Wed, 09 Apr 2025 15:01:59 -0700
Organization: None to speak of
Lines: 24
Message-ID: <87a58pq9ig.fsf@nosuchdomain.example.com>
References: <87y0wjaysg.fsf@gmail.com> <vsj1m8$1f8h2$1@dont-email.me>
	<vsj2l9$1j0as$1@dont-email.me> <vsjef3$1u4nk$1@dont-email.me>
	<vsjg6t$20pdb$1@dont-email.me> <vsjgjn$1v1n4$1@dont-email.me>
	<vsjk4k$24q5m$1@dont-email.me> <vsjlcp$230a5$1@dont-email.me>
	<vsjmdl$277bk$1@dont-email.me> <VsdHP.1828827$TBhc.1078002@fx16.iad>
	<vskjlo$34st8$1@dont-email.me> <20250402220614.431@kylheku.com>
	<85mscxlqnb.fsf@nosuchdomain.example.com>
	<vsl9sn$3vdjj$2@dont-email.me> <20250403121946.134@kylheku.com>
	<vsms75$1i8ud$1@dont-email.me> <vsnhq6$291i3$4@dont-email.me>
	<20250409124900.00000fa1@yahoo.com> <861pu1ccsg.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Thu, 10 Apr 2025 00:02:00 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b22cabfa06f6271bcf7b0b42430aa8f3";
	logging-data="1572800"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19NTACBcCxPz4YV+6dtzNKC"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:iyR2CcLZsjMaoO8s7yAIoUPQ7Bk=
	sha1:gqEUer85mQ5a+8Fz8kWXpmUZOgc=
Bytes: 2430

Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
[...]
> Trailing commas in argument lists and/or parameter lists
> could be accepted as an extension, even without giving a
> diagnostic as I read the C standard, but implementations
> are certainly within their rights to reject them.

I believe a diagnotic is required.

C17 5.1.1.3:

    A conforming implementation shall produce at least one
    diagnostic message (identified in an implementation-defined
    manner) if a preprocessing translation unit or translation
    unit contains a violation of any syntax rule or constraint,
    even if the behavior is also explicitly specified as undefined
    or implementation-defined.

A trailing comma on an argument or parameter list is a violation
of a syntax rule.

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