From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 649 invoked by alias); 14 Jan 2002 10:26:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 572 invoked by uid 71); 14 Jan 2002 10:26:01 -0000 Resent-Date: 14 Jan 2002 10:26:01 -0000 Resent-Message-ID: <20020114102601.571.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Andreas Schwab Received:(qmail 31841 invoked from network); 14 Jan 2002 10:19:15 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 14 Jan 2002 10:19:15 -0000 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 2685B1E1E8 for ; Mon, 14 Jan 2002 11:19:15 +0100 (MET) Message-Id:<200201141019.g0EAJFn04231@gadolinium.suse.de> Date: Mon, 14 Jan 2002 02:26:00 -0000 From: Andreas Schwab To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: c++/5373: Statement expressions broken in C++ X-SW-Source: 2002-01/txt/msg00506.txt.bz2 List-Id: >Number: 5373 >Category: c++ >Synopsis: Statement expressions broken in C++ >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Mon Jan 14 02:26:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.1 20020107 (experimental) >Organization: >Environment: System: Linux gadolinium 2.4.7-SMP #1 SMP Fri Nov 23 12:13:10 GMT 2001 ia64 unknown Architecture: ia64 host: ia64-suse-linux-gnu build: ia64-suse-linux-gnu target: ia64-suse-linux-gnu configured with: ../configure --enable-threads=posix --enable-long-long --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared ia64-suse-linux >Description: The C++ compiler does not accept certain kinds of statement expressions. Apparently it only accepts those that can be folded to a simple constant at compile time. >How-To-Repeat: $ cat stmtexpr.cc int main (int argc, char **argv) { int a = ({ 1 ? 0 : 1; }); return ({ argc > 1 ? 1 : 0; }); } $ gcc -c stmtexpr.cc stmtexpr.cc: In function `int main(int, char**)': stmtexpr.cc:5: void value not ignored as it ought to be >Fix: >Release-Note: >Audit-Trail: >Unformatted: