From: jeff.sturm@appnet.com
To: axp-list@redhat.com
Subject: Re: ccc error
Date: Tue, 9 Jan 2001 02:26:18 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.10.10101090223500.20236-100000@cc42593-a.taylor1.mi.home.com> (raw)
In-Reply-To: <Pine.LNX.4.10.10101090204570.19797-100000@cc42593-a.taylor1.mi.home.com>
Does anyone know if the following is valid C:
extern int a;
extern int b;
void f(int x) {
(x ? a : b) = 1;
}
gcc compiles it fine, ccc fails with:
cc: Error: t.c, line 5: In this statement, "(x?a:b)" is not an lvalue, but occurs in a context that requires one. (needlvalue)
(x ? a : b) = 1;
--------^
GCC contains similar constructs, so I'd think it's portable C. Where can
one submit bug reports for ccc?
Jeff
next parent reply other threads:[~2001-01-09 6:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.10.10101090204570.19797-100000@cc42593-a.taylor1.mi.home.com>
2001-01-09 7:26 ` jeff.sturm [this message]
2001-01-09 9:49 ` ccc error Georg Wittig
2001-01-09 9:58 ` Uncle George
2001-01-09 16:35 ` Michal Jaegermann
2001-01-09 13:51 ` Greg Lindahl
2001-01-09 13:59 ` Thomas Leitner
2001-01-09 16:51 ` Jeff Sturm
2001-01-09 18:05 ` ccc error [OT] Chris Eleveld (Sector 7 Group)
2001-01-09 18:20 ` Michal Jaegermann
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