Bug Report #3

Alexandrescu, Andrei AlexandrescuA@MICROMODELING.COM
Sun Nov 8 09:30:00 GMT 1998


I use egcs 1.1 on Windows NT 4.0. I don't know in more detail what it is;
there is a folder called "lib/gcc-lib/i386-mingw32/egcs-2.91.57" in there
and the readme.txt file says "Release date: Sep 5, 1998".

I passed no options to egcs. The command line is:

c++ main.cpp

There is no preprocessor stuff involved so I guess I shouldn't pass a
preprocessed output.

If I can be of any help please let me know.


-----Original Message-----
From: Gerald Pfeifer
To: Alexandrescu, Andrei
Cc: 'egcs-bugs@cygnus.com'; 'khan@xraylith.wisc.edu'
Sent: 11/8/98 4:10 AM
Subject: Re: Bug Report #3

On Sun, 8 Nov 1998, Alexandrescu, Andrei wrote:
> The following erratic code crashes egcs:

You did not submit a full bug report (notably, the way egcs ``crashes'',
the version of egcs and your platform were missing). Please check out
http://egcs.cygnus.com/faq.html#bugreport for further details.

In any case, current CVS snapshots and EGCS 1.1 report the following
instead on sparc-sun-solaris2.6:

  x.cc:4: wrong number of template arguments (1, should be 2)
  x.cc:2: provided for `template <class Interface, bool Exists>
  x.cc:4: confused by earlier errors, bailing out

> /////////////////////////////////////////////////////
> template <typename Interface, bool Exists>
> class inherit_if {};
> template <typename Interface>
> 	class inherit_if<true> : public Interface {};

Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/

More information about the Gcc-bugs mailing list