From: cwr@cts.com (Will Rose)
Subject: Re: comma operator: C compiler bug or bogus usage?
Date: 1999/04/15 [thread overview]
Message-ID: <7f5stm$6a8$6@nusku.cts.com> (raw)
In-Reply-To: 5u8PBMkHV$73G$1@joerch.org
Joerg Czeranski (jc@joerch.org) wrote:
[...]
: gcc has a different handling of "," and IMHO it violates the standard
: in that respect. Even gcc -ansi -pedantic doesn't emit a diagnostic
: for this error (it violates the constraint in 6.3.16.1: Simple assignment,
: referred to by 6.5.8: Initialization):
: char weekday[7] = { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" };
: (That's an actual example of something a friend who is just learning C
: stumbled over.)
I'm suprised at that; I get 'number of initialisers cannot be greater
than the number of aggregate members' with the compiler I use. It's
the sort of thing you'd want checked, too.
Will
cwr@crash.cts.com
next prev parent reply other threads:[~1999-04-15 4:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-15 4:00 comma operator: C compiler bug or bogus usage? John Hascall
1999-04-15 4:00 ` Noone Really
1999-04-15 4:00 ` Joerg Czeranski
1999-04-15 4:00 ` Will Rose [this message]
1999-04-15 4:00 ` Venkat
1999-04-15 4:00 ` Lawrence Kirby
1999-04-15 4:00 ` Casper H.S. Dik - Network Security Engineer
1999-04-15 4:00 ` Kaz Kylheku
1999-04-15 4:00 ` John Hascall
1999-04-15 4:00 ` Kaz Kylheku
1999-04-16 4:00 ` Lawrence Kirby
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox