From: bitland AT aol DOT com (Bitland) Newsgroups: comp.os.msdos.djgpp Subject: C++-parserproblems ? Date: 15 Feb 1998 23:14:15 GMT Lines: 41 Message-ID: <19980215231401.SAA11709@ladder02.news.aol.com> NNTP-Posting-Host: ladder02.news.aol.com Organization: AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Third try to place this message, hope it works now :)) Found two C++-parserproblems, which *imho* shouldn't be there: // ----- First one: class A { public: char *string; A(char *s) : string(s) {} }; class B : public A { public: B(void) : A("doesn't work here with language-specific letters !") {} }; // i.e. german letters in the string will produce 'parser error' 'unterminated string' B test; main() { A *test = new A("but here it works !"); delete test; } // ----- Templates of templates: i.e.: MyList> Parser has problems with the final >> No more problem, if you type a blank between there. If somebody knows a solution for the first problem (except \nnn), please mail me. Andy Kluge -- *\o/* --- Wiesbaden, Germany ---------- bitland AT aol DOT com