Internal compiler error
Peter Ludemann
ludemann@inxight.com
Mon Dec 14 18:47:00 GMT 1998
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
SunOS wistaria 5.5.1 Generic_103640-12 sun4u sparc SUNW,Ultra-1
g++ -Wall -c zzz.cc
And here's zzz.cc:
#include <string>
#include <map>
template < class Type = int, Type Init = 0 >
class InitializedNumber {
public:
InitializedNumber(const Type& init = Init) : value(init) { }
operator const Type& () const { return value; }
operator Type& () { return value; }
private:
Type value;
}
typedef std::map < std::string, InitializedNumber < unsigned int, 0 > > Counter;
More information about the Gcc-bugs
mailing list