Your message dated Tue, 26 Aug 2003 12:16:42 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#207269: gcc-3.3: require semi-colon after do{}while()
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 26 Aug 2003 03:42:56 +0000
>From [EMAIL PROTECTED] Mon Aug 25 22:42:24 2003
Return-path: <[EMAIL PROTECTED]>
Received: from pthierry.net1.nerim.net (imperatrice.arcanes) [213.41.153.205] 
        by master.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 19rUit-0000R2-00; Mon, 25 Aug 2003 22:42:23 -0500
Received: by imperatrice.arcanes (Postfix, from userid 1000)
        id E890F8E09A; Tue, 26 Aug 2003 06:00:31 +0200 (CEST)
Date: Tue, 26 Aug 2003 06:00:31 +0200
From: Pierre THIERRY <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: gcc-3.3: require semi-colon after do{}while()
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="oRWDw5wXQ3uCJU7V"
Content-Disposition: inline
X-Reportbug-Version: 2.20
X-Operating-System: Linux 2.4.18-bf2.4 i686
X-Sheldon-Has-Said: Mange ton =?iso-8859-1?B?Y+Jj4uI=?= !
User-Agent: Mutt/1.5.4i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Status: No, hits=-9.3 required=4.0
        tests=BAYES_10,PGP_SIGNATURE_2,USER_AGENT_MUTT
        version=2.53-bugs.debian.org_2003_8_17
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_17 
(1.174.2.15-2003-03-30-exp)


--oRWDw5wXQ3uCJU7V
Content-Type: multipart/mixed; boundary="lPJ5i9rX1WvdYcWF"
Content-Disposition: inline


--lPJ5i9rX1WvdYcWF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: gcc-3.3
Version: 1:3.3.1-0pre0
Severity: normal
Tags: upstream

GCC, for C and C++, doesn't require any semi-colon after a while(){}
structure (and shouldn't, AFAIK), but require it after a do{}while().

Compiling the attached file triggers the following error, and the
compilation works great when applying the following patch:

$ gcc -o control control.c
control.c: In function `main':
control.c:8: error: syntax error before '}' token
$ gcc -o control control.non-standard.c
$

--- control.c   2003-08-26 05:24:16.000000000 +0200
+++ control.non-standard.c      2003-08-26 05:29:32.000000000 +0200
@@ -4,5 +4,5 @@
 {
        do {
                printf("blob");
-       } while(0)
+       } while(0);
 }

Also applicable to 1:3.3.2-0pre1 (sid)

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux bateleur.arcanes 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 200=
2 i686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED]

Versions of packages gcc-3.3 depends on:
ii  binutils                 2.14.90.0.4-0.1 The GNU assembler, linker and =
bina
ii  cpp-3.3                  1:3.3.1-0pre0   The GNU C preprocessor
ii  gcc-3.3-base             1:3.3.1-0pre0   The GNU Compiler Collection (b=
ase=20
ii  libc6                    2.3.1-16        GNU C Library: Shared librarie=
s an
ii  libgcc1                  1:3.3.1-0pre0   GCC support library

-- no debconf information


--=20
[EMAIL PROTECTED]
OpenPGP 0xD9D50D8A

--lPJ5i9rX1WvdYcWF
Content-Type: text/x-csrc; charset=us-ascii
Content-Disposition: inline; filename="control.c"

#include <stdio.h>

int main()
{
        do {
                printf("blob");
        } while(0)
}

--lPJ5i9rX1WvdYcWF--

--oRWDw5wXQ3uCJU7V
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/Sttfxe13INnVDYoRApn6AJ9i1Xs6nhqaO7cWLovPu04+7tSEOQCfWs8+
SE1hNsjwog+KlbCY4Up10Ns=
=3ICr
-----END PGP SIGNATURE-----

--oRWDw5wXQ3uCJU7V--

---------------------------------------
Received: (at 207269-done) by bugs.debian.org; 26 Aug 2003 16:17:18 +0000
>From [EMAIL PROTECTED] Tue Aug 26 11:16:44 2003
Return-path: <[EMAIL PROTECTED]>
Received: from dsl093-172-017.pit1.dsl.speakeasy.net (nevyn.them.org) 
[66.93.172.17] 
        by master.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 19rgUs-0000EO-00; Tue, 26 Aug 2003 11:16:43 -0500
Received: from drow by nevyn.them.org with local (Exim 4.20 #1 (Debian))
        id 19rgUs-00064y-JG
        for <[EMAIL PROTECTED]>; Tue, 26 Aug 2003 12:16:42 -0400
Date: Tue, 26 Aug 2003 12:16:42 -0400
From: Daniel Jacobowitz <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Bug#207269: gcc-3.3: require semi-colon after do{}while()
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.1i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Status: No, hits=-15.5 required=4.0
        tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,
              REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT
        autolearn=ham version=2.53-bugs.debian.org_2003_8_17
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_17 
(1.174.2.15-2003-03-30-exp)

On Tue, Aug 26, 2003 at 11:20:53AM -0400, Daniel Jacobowitz wrote:
> On Tue, Aug 26, 2003 at 06:00:31AM +0200, Pierre THIERRY wrote:
> > Package: gcc-3.3
> > Version: 1:3.3.1-0pre0
> > Severity: normal
> > Tags: upstream
> > 
> > GCC, for C and C++, doesn't require any semi-colon after a while(){}
> > structure (and shouldn't, AFAIK), but require it after a do{}while().
> > 
> > Compiling the attached file triggers the following error, and the
> > compilation works great when applying the following patch:
> > 
> > $ gcc -o control control.c
> > control.c: In function `main':
> > control.c:8: error: syntax error before '}' token
> > $ gcc -o control control.non-standard.c
> > $
> 
> Why do you believe that this is a bug in GCC?  This is a standard
> element of C; braces which denote a block scope do not require a
> trailing semicolon but other statements do.
> 
> Did other versions of GCC accept this?

Closing bug.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Reply via email to