*BSD News Article 39200


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:15097 gnu.gcc.help:10333 gnu.g++.help:7255
Newsgroups: comp.os.386bsd.questions,gnu.gcc.help,gnu.g++.help
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!werple.apana.org.au!otis.apana.org.au!serval.net.wsu.edu!news.clark.edu!spool.mu.edu!sgiblab!swrinde!pipex!uunet!news.cygnus.com!mrs
From: mrs@cygnus.com (Mike Stump)
Subject: Re: Problem with gcc/g++-2.6.2, using libg++-2.6.1
Message-ID: <D0GrF5.2r5@cygnus.com>
Sender: news@cygnus.com
Nntp-Posting-Host: poseidon.cygnus.com
Organization: Cygnus Support, Mountain View, CA
References: <3c42ma$7re@cville-srv.wam.umd.edu>
Date: Wed, 7 Dec 1994 23:18:40 GMT
Lines: 12

In article <3c42ma$7re@cville-srv.wam.umd.edu>,
David <cradle@wam.umd.edu> wrote:
>enum {false, true};
>test3.cc:4: parse error before `false'

The compiler is telling you that the file is not valid C++ source
code.  It turns out that false is a keyword.  It is the same as doing:

enum { if, else };

under ANSI C.  Try removing the line, and the program should do what
you want, else just use different names.