Internal compiler error in g++ from GCC2.95.2

Philipp Thomas pthomas@suse.de
Sun Jan 30 16:06:00 GMT 2000


* James A. Bednar (jbednar@cs.utexas.edu) [20000131 00:41]:

> g++ 2.95.2 aborts unceremoniously when attempting to compile this
> simple file:
> 
>   class StringParser {
>   public:
>      StringParser() { }
>     ~StringParser() { }
>     
>     double&  parse(const char* s, double&  x) {  return x=basicparse(s,x);  }
>     template<class T> T& basicparse(const char* s, T& x) {  return x;  }
>   };
> 
> The code compiles fine under "gcc version egcs-2.91.66 19990314/Linux
> (egcs-1.1.2 release)" on the same machine.  The command line and

The current CVS version compiles this without problems, so it seems the bug
has been fixed.

Philipp

-- 
Philipp Thomas <pthomas@suse.de>
SuSE GmbH, Deutschherrenstrasse 15-29, 90429 Nuremberg

Life is an ocean and love is a boat,
in troubled waters, it keeps us afloat
                                   Christy Moore


More information about the Gcc-bugs mailing list