From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28568 invoked by alias); 1 May 2004 11:21:25 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 28552 invoked from network); 1 May 2004 11:21:23 -0000 Received: from unknown (HELO mailhost.ics.forth.gr) (139.91.157.50) by sources.redhat.com with SMTP; 1 May 2004 11:21:23 -0000 Received: from calliope.ics.forth.gr (localhost [127.0.0.1]) by mailhost.ics.forth.gr (8.12.10/ICS-FORTH/V10-Server-1.0) with ESMTP id i41BLLtR006577 for ; Sat, 1 May 2004 14:21:22 +0300 (EEST) Received: from localhost (papadako@localhost) by calliope.ics.forth.gr (8.9.3/ICS-FORTH/V8.2.2C-INTNULL) with ESMTP id OAA16195 for ; Sat, 1 May 2004 14:21:21 +0300 (EET DST) X-Authentication-Warning: calliope.ics.forth.gr: papadako owned process doing -bs Date: Sat, 01 May 2004 11:21:00 -0000 From: Panagiotis Papadakos To: gcc@gcc.gnu.org Subject: Gcc 3.4.0 problem? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-05/txt/msg00006.txt.bz2 The following code compiles fine with gcc-3.4.0 unless I use one of the -O,-O2,-O3 flags. Then I get the following message: test.c: In function `main': test.c:10: error: invalid operands to binary - Is this a gcc bug? Thank you! ----------------------- #include #include int main(void) { char *cpa; long i=1; -----> i= strpbrk(cpa, ", \n")-cpa; return 0; } ----------------------- Regards Panagiotis Papadakos P.S. (Sorry if this mail has been reposted)