Bug Report #3

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Sun Nov 8 01:10:00 GMT 1998

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