From: Casper.Dik@Holland.Sun.Com (Casper H.S. Dik - Network Security Engineer)
Subject: Re: comma operator: C compiler bug or bogus usage?
Date: 1999/04/15 [thread overview]
Message-ID: <casper.924200347@nl-usenet.sun.com> (raw)
In-Reply-To: 7f567v$sp1$1@news.iastate.edu
[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]
john@iastate.edu (John Hascall) writes:
> Is the result of:
> constant-expression comma-operator constant-expression
> still a constant-expression or not? If not, why not (and it
> seems to me this is the only operator with this property?)
No.
>John
>PS, FWIW, gcc accepts both of these and produces the 'expected' results
Well, if you pass -ansi -pedantic:
gcc -ansi -pedantic x.c
x.c:3: warning: ANSI C forbids variable-size array `foo'
x.c:3: variable-size type declared outside of any function
x.c:4: warning: ANSI C forbids variable-size array `bar'
x.c:4: variable-size type declared outside of any function
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
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 ` Casper H.S. Dik - Network Security Engineer [this message]
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
1999-04-15 4:00 ` Joerg Czeranski
1999-04-15 4:00 ` Will Rose
1999-04-15 4:00 ` Lawrence Kirby
1999-04-15 4:00 ` Venkat
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