From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 3E9EC2F174 for ; Tue, 9 Jan 2001 11:47:42 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f09GlgN31369 for axp-list@listman.redhat.com; Tue, 9 Jan 2001 11:47:42 -0500 Received: from toronto.sigma6.com (toronto.sigma6.com [204.176.48.147]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f09GlfD31365 for ; Tue, 9 Jan 2001 11:47:41 -0500 Received: from appnet.com (IDENT:jsturm@localhost.localdomain [127.0.0.1]) by toronto.sigma6.com (8.9.3/8.9.3) with ESMTP id LAA26539 for ; Tue, 9 Jan 2001 11:51:16 -0500 Message-ID: <3A5B4184.37986642@appnet.com> Date: Tue, 09 Jan 2001 11:51:16 -0500 From: Jeff Sturm Organization: Commerce One X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: ccc error References: <000f01c07a43$3f7b0c00$8cf8fea9@hptilap.hpti.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors 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