From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27749 invoked by alias); 7 Jan 2013 15:44:07 -0000 Received: (qmail 27712 invoked by uid 22791); 7 Jan 2013 15:44:07 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Jan 2013 15:44:03 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r07Fi2Y5025224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 7 Jan 2013 10:44:03 -0500 Received: from zebedee.pink (ovpn-113-113.phx2.redhat.com [10.3.113.113]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r07Fi1Xw014635; Mon, 7 Jan 2013 10:44:02 -0500 Message-ID: <50EAED41.4010804@redhat.com> Date: Mon, 07 Jan 2013 15:49:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: horseriver CC: gcc-help@gcc.gnu.org Subject: Re: how to implement this ? References: <20130107044616.GD2432@debian.localdomain> <50EADC37.1010209@redhat.com> <20130107051145.GE2432@debian.localdomain> <50EAE52B.8000001@redhat.com> <20130107053935.GA26946@debian.localdomain> <50EAE9F7.5040405@redhat.com> <20130107055724.GD26946@debian.localdomain> In-Reply-To: <20130107055724.GD26946@debian.localdomain> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg00044.txt.bz2 On 01/07/2013 05:57 AM, horseriver wrote: > gcc can translate " ((a==0)?b:c)=8 " into if-else sentence > > is my idea ,not a reported error Oh, you mean why does C not allow ((a==0)?b:c)=8; You'd have to ask the C standard committee. It's not something that the language allows. Andrew.