Internal error 71

Werner Kratochwil e9325279@stud4.tuwien.ac.at
Sat Jun 3 04:54:00 GMT 2000


Hi!
 
I came accross the internal error 71 with the 
following header file included: 
 
 

extern const char alph25[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
typedef AsnConstrAlph<alph25> HugeString;
template<const char alphabet[]>
class AsnConstrAlph: public AsnOcts
{
public: 
AsnConstrAlph(): AsnOcts() {}
AsnConstrAlph(const char *str) : AsnOcts(str) {}
AsnConstrAlph(const char *str, const size_t len) : AsnOcts(str, len) {}
AsnConstrAlph(const AsnOcts &o): AsnOcts(o) {}
AsnLen PEncContent (BUF_TYPE b);
void PDecContent (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
};
template<const char alphabet[]>
AsnLen AsnConstrAlph<alphabet>::PEncContent (BUF_TYPE b)
{
cout << "AsnConstrAlph::PEncContent with alphabet: " << alphabet 
<< " called: " << endl << *this << endl;
return 0; 
}
template<const char alphabet[]>
void AsnConstrAlph<alphabet>::PDecContent (BUF_TYPE b, AsnLen 
&bytesDecoded, ENV_TYPE env)
{
cout << "AsnConstrAlph::PDecContent with alphabet: " << alphabet 
<< " called: " << endl;
return 0; 
}
If I leave out the const, the error does not occur. 

Have fun ;-)
  Werner
 
 
 



More information about the Gcc-bugs mailing list