Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jeff Sturm <jeff.sturm@appnet.com>
To: axp-list@redhat.com
Subject: Re: ccc error
Date: Tue, 09 Jan 2001 11:51:16 -0500	[thread overview]
Message-ID: <3A5B4184.37986642@appnet.com> (raw)
In-Reply-To: 000f01c07a43$3f7b0c00$8cf8fea9@hptilap.hpti.com

Greg Lindahl wrote:
> > void f(int x) {
> >       (x ? a : b) = 1;
> > }
> 
> This is a gcc extension. You can look in the info pages to see what gcc has
> as extensions, or you can use the -ansi flag on gcc to get it to issue
> warnings about its own extensions.

Thanks.  In fact I have to use -pedantic to get any warnings:

[jsturm@toronto tmp]$ gcc -c -pedantic f.c
f.c: In function `f':
f.c:4: warning: ISO C forbids use of conditional expressions as lvalues

> I believe that the ccc people plan on eventually adding all of gcc's
> extensions to ccc, which would be a great boon to AlphaLinux users.

This example is apparently OK with several compilers besides gcc.  I was just
curious who is right/wrong so I don't annoy the wrong people with a bug report
;)

(Sorry if this is OT.  I know there are many ccc users here...)

--
Jeff Sturm
jeff.sturm@commerceone.com




  parent reply	other threads:[~2001-01-09 16:47 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 ` ccc error jeff.sturm
2001-01-09  9:49   ` 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 [this message]
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