This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
|
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
|
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |