[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#251225: marked as done (g++: `xor', `or' and `and' can't be identifiers)



Your message dated Thu, 27 May 2004 17:14:17 +0200
with message-id <87y8ndj41i.fsf@informatik.uni-tuebingen.de>
and subject line Bug#251225: g++: `xor', `or' and `and' can't be identifiers
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 maintonly) by bugs.debian.org; 27 May 2004 14:56:59 +0000
>From frank@rc.rug.nl Thu May 27 07:56:59 2004
Return-path: <frank@rc.rug.nl>
Received: from suffix.rc.rug.nl [129.125.3.162] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BTMJX-00012r-00; Thu, 27 May 2004 07:56:59 -0700
Received: from suffix.rc.rug.nl (remote.client [127.0.0.1])
	by suffix.rc.rug.nl (8.12.9/8.12.9/Debian-5) with ESMTP id i4REuRdl023760
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Thu, 27 May 2004 16:56:27 +0200
Received: (from frank@localhost)
	by suffix.rc.rug.nl (8.12.9/8.12.9/Debian-5) id i4REuQPj023759;
	Thu, 27 May 2004 16:56:26 +0200
Message-Id: <[🔎] 200405271456.i4REuQPj023759@suffix.rc.rug.nl>
From: "Frank B. Brokken" <f.b.brokken@rc.rug.nl>
To: Debian Bug Tracking System <maintonly@bugs.debian.org>
Subject: g++: `xor', `or' and `and' can't be identifiers
X-Mailer: reportbug 1.50
Date: Thu, 27 May 2004 16:56:26 +0200
Delivered-To: maintonly@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: g++
Version: 3:3.3-2
Severity: minor



-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux suffix 2.4.24 #1 Wed Jan 14 09:52:19 CET 2004 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages g++ depends on:
ii  cpp                           3:3.3-2    The GNU C preprocessor.
ii  g++-3.3                       1:3.3.1-1  The GNU C++ compiler
ii  gcc-3.3                       1:3.3.1-1  The GNU C compiler

Hi,

I would like to submit the following bug-report:


Recently I tried to compile the following source:

    void or()
    {}

When compiling this function, the following compilation error was reported:

    demo.cc:1: error: syntax error before `||' token

Next I did several small additional tests:

    - The same kind of error was produced with the `and' and `xor'
        identifiers. 

    - The same kind of error was produced with the `and' and `xor' identifiers
        used in variable declarations.

    - When the source is offered to the C compiler no errors are reported
        (compiler: 
            cc --version
            cc (GCC) 3.3.1 (Debian)
        )

    - Using a namespace doesn't prevent the error. 

    - The error does not occur using another C++ compiler on other hardware
            (IRIX64 hpv 6.5 04100803 IP35) 
        using its C++ compiler 
            (MIPSpro Compilers: Version 7.3.1.2m)

    - `or', `and' and `xor' are not C++ keywords.

As the problem is not occurring with another type of compiler and as the
identifier(s) aren't keywords, I suspect there might be a glitch in the lexical
scanner, returning OR-tokens for both '||' and 'or'.

Kind regards,

Frank B. Brokken.


---------------------------------------
Received: (at 251225-done) by bugs.debian.org; 27 May 2004 15:14:52 +0000
>From hueffner@informatik.uni-tuebingen.de Thu May 27 08:14:52 2004
Return-path: <hueffner@informatik.uni-tuebingen.de>
Received: from mx5.informatik.uni-tuebingen.de [134.2.12.32] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BTMap-00022u-00; Thu, 27 May 2004 08:14:52 -0700
Received: from localhost (loopback [127.0.0.1])
	by mx5.informatik.uni-tuebingen.de (Postfix) with ESMTP id BD60B129
	for <251225-done@bugs.debian.org>; Thu, 27 May 2004 17:14:20 +0200 (MST)
Received: from mx5.informatik.uni-tuebingen.de ([127.0.0.1])
 by localhost (mx5 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 21328-04 for <251225-done@bugs.debian.org>;
 Thu, 27 May 2004 17:14:18 +0200 (DFT)
Received: from juist (semeai.Informatik.Uni-Tuebingen.De [134.2.15.66])
	by mx5.informatik.uni-tuebingen.de (Postfix) with ESMTP id A2BE2128
	for <251225-done@bugs.debian.org>; Thu, 27 May 2004 17:14:18 +0200 (MST)
Received: from falk by juist with local (Exim 3.36 #1 (Debian))
	id 1BTMaH-0008BW-00
	for <251225-done@bugs.debian.org>; Thu, 27 May 2004 17:14:17 +0200
To: 251225-done@bugs.debian.org
Subject: Re: Bug#251225: g++: `xor', `or' and `and' can't be identifiers
References: <[🔎] 200405271456.i4REuQPj023759@suffix.rc.rug.nl>
From: Falk Hueffner <hueffner@informatik.uni-tuebingen.de>
X-Face: "iUeUu$b*W_"w?tV83Y3*r:`rh&dRv}$YnZ3,LVeCZSYVuf[Gpo*5%_=/\_!gc_,SS}[~xZ
 wY77I-M)xHIx:2f56g%/`SOw"Dx%4Xq0&f\Tj~>|QR|vGlU}TBYhiG(K:2<T^
Date: Thu, 27 May 2004 17:14:17 +0200
In-Reply-To: <[🔎] 200405271456.i4REuQPj023759@suffix.rc.rug.nl> (Frank B.
 Brokken's message of "Thu, 27 May 2004 16:56:26 +0200")
Message-ID: <87y8ndj41i.fsf@informatik.uni-tuebingen.de>
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (cabbage, linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: by amavisd-new (McAfee AntiVirus) at informatik.uni-tuebingen.de
Delivered-To: 251225-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

"Frank B. Brokken" <f.b.brokken@rc.rug.nl> writes:

>     void or()
>     {}
>
> When compiling this function, the following compilation error was reported:
>
>     demo.cc:1: error: syntax error before `||' token
>
> As the problem is not occurring with another type of compiler and as the
> identifier(s) aren't keywords

In fact, they are in C++.

-- 
	Falk



Reply to: