public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Compiler parsing error
@ 1998-12-27  1:27 Chris Butler
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Butler @ 1998-12-27  1:27 UTC (permalink / raw)
  To: Bruce Eckel, egcs

Hi,

> The accompanying file seems to blow up the parser. I successfully compile
> and run it with the Borland C++ beta.

Once I added #include <algo.h> (for replace), it compiled fine on an
i586-pc-cygwin target.

By the way - you should read http://egcs.cygnus.com/faq.html#bugreport for
information on what details you should provide in a bug report.

--
Chris Butler
<chrisb@sandy.force9.co.uk>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compiler parsing error
  1998-12-28 10:53 Bruce Eckel
@ 1998-12-28 11:03 ` Joe Buck
  0 siblings, 0 replies; 3+ messages in thread
From: Joe Buck @ 1998-12-28 11:03 UTC (permalink / raw)
  To: Bruce; +Cc: chrisb, egcs

> There was a problem with a missing <algorithm> include, but the parser
> blowup still remains. The problem was in the use of "dos" or "unix" as an
> identifier; once I changed them to _dos and _unix it compiled. But it should
> not have generated a parser error. This was with the egcs snapshot from two
> weeks ago under RedHat Linux 5.2.

The -ansi flag will turn off preprocessor identifiers that are in the
reserved namespace.  Unfortunately if they are turned off by default,
important packages like the X Window system fails to build.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compiler parsing error
@ 1998-12-28 10:53 Bruce Eckel
  1998-12-28 11:03 ` Joe Buck
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Eckel @ 1998-12-28 10:53 UTC (permalink / raw)
  To: Chris Butler, egcs

There was a problem with a missing <algorithm> include, but the parser
blowup still remains. The problem was in the use of "dos" or "unix" as an
identifier; once I changed them to _dos and _unix it compiled. But it should
not have generated a parser error. This was with the egcs snapshot from two
weeks ago under RedHat Linux 5.2.
=============================
Bruce Eckel    http://www.BruceEckel.com
Contains free electronic books: "Thinking in Java" & "Thinking in C++ 2e"

-----Original Message-----
From: Chris Butler <chrisb@sandy.force9.co.uk>
To: Bruce Eckel <Bruce@EckelObjects.com>; egcs@cygnus.com <egcs@cygnus.com>
Date: Sunday, December 27, 1998 1:27 AM
Subject: Re: Compiler parsing error


>Hi,
>
>> The accompanying file seems to blow up the parser. I successfully compile
>> and run it with the Borland C++ beta.
>
>Once I added #include <algo.h> (for replace), it compiled fine on an
>i586-pc-cygwin target.
>
>By the way - you should read http://egcs.cygnus.com/faq.html#bugreport for
>information on what details you should provide in a bug report.
>
>--
>Chris Butler
><chrisb@sandy.force9.co.uk>
>
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-12-28 11:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-27  1:27 Compiler parsing error Chris Butler
1998-12-28 10:53 Bruce Eckel
1998-12-28 11:03 ` Joe Buck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).