From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8520 invoked by alias); 18 May 2003 08:52:19 -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 8456 invoked from network); 18 May 2003 08:52:16 -0000 Received: from unknown (HELO monkey.daikokuya.co.uk) (213.152.55.49) by sources.redhat.com with SMTP; 18 May 2003 08:52:16 -0000 Received: from neil by monkey.daikokuya.co.uk with local (Exim 3.36 #1 (Debian)) id 19HJqK-0003MS-00; Sun, 18 May 2003 09:48:32 +0100 Date: Sun, 18 May 2003 10:27:00 -0000 From: Neil Booth To: Jamie Lokier Cc: gcc@gcc.gnu.org Subject: Re: C99 parsing error? Message-ID: <20030518084832.GB12806@daikokuya.co.uk> References: <20030518082723.GA6350@mail.jlokier.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030518082723.GA6350@mail.jlokier.co.uk> User-Agent: Mutt/1.5.4i X-SW-Source: 2003-05/txt/msg01685.txt.bz2 Jamie Lokier wrote:- > Is it really not permitted to write this in C99?: > > while (--length >= 0) > { > loop: > int byte = *data++; > > GCC 3.2.2 reports: parse error before "int" > If I replace "loop:" with "loop:;", it's fine. > Perhaps GCC is correct to reject this, but it is surprising. No, your code is fine. Neil.