From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22061 invoked by alias); 20 Mar 2003 18:26:00 -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 22037 invoked by uid 71); 20 Mar 2003 18:26:00 -0000 Resent-Date: 20 Mar 2003 18:26:00 -0000 Resent-Message-ID: <20030320182600.22036.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, xkinh@yahoo.com Received: (qmail 19899 invoked by uid 48); 20 Mar 2003 18:19:04 -0000 Message-Id: <20030320181904.19898.qmail@sources.redhat.com> Date: Thu, 20 Mar 2003 18:26:00 -0000 From: xkinh@yahoo.com Reply-To: xkinh@yahoo.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/10170: Is this a bug of GCC? or it's a C syntax X-SW-Source: 2003-03/txt/msg01344.txt.bz2 List-Id: >Number: 10170 >Category: c >Synopsis: Is this a bug of GCC? or it's a C syntax >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Mar 20 18:26:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Kinh Nguyen >Release: 3.2.2 and earlier >Organization: >Environment: Linux, Sun >Description: compile the following program and run it. Is it a GCC bug or it's a c syntax? (I'm not sure but other compilers give an error message). #include int alwayzero(); main(){ if (alwayzero) printf("Is this a GCC bug or it's the C syntax\n"); } int alwayzero() {return 0;} >How-To-Repeat: Try to compile and run the program. Other compile will give error messages >Fix: >Release-Note: >Audit-Trail: >Unformatted: