Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <001b01c146b2$0c071bc0$6501a8c0@dns.rcn.net> Reply-To: "Robert Allan Schwartz" From: "Robert Allan Schwartz" To: Subject: 1.3.3: g++ dislikes attempt to inherit from char_traits Date: Wed, 26 Sep 2001 13:38:24 -0400 Organization: Tessellation Training MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Source code: #include #include using namespace std; class case_insensitive_traits : public char_traits { }; typedef basic_string case_insensitive_string; int main(void) { case_insensitive_string alphabet("AbCdEfGhIjKlMnOpQrStUvWxYz"); return 0; } Compilation errors: deleteme.cpp:6: parse error before `<' /usr/include/g++-3/std/bastring.h: In instantiation of `basic_string >': deleteme.cpp:14: instantiated from here /usr/include/g++-3/std/bastring.h:131: invalid use of undefined type `class case_insensitive_traits' deleteme.cpp:6: forward declaration of `class case_insensitive_traits' /usr/include/g++-3/std/bastring.h: In method `class basic_string > & basic_string >::assign(const char *)': /usr/include/g++-3/std/bastring.h:178: instantiated from `basic_string >::basic_string(const char *)' deleteme.cpp:14: instantiated from here /usr/include/g++-3/std/bastring.h:220: no method `case_insensitive_traits::length' /usr/include/g++-3/std/bastring.cc: In method `void basic_string >::Rep::copy(unsigned int, const char *, unsigned int)': /usr/include/g++-3/std/bastring.cc:72: instantiated from `basic_string >::Rep::clone()' /usr/include/g++-3/std/bastring.h:75: instantiated from here /usr/include/g++-3/std/bastring.cc:139: no method `case_insensitive_traits::copy' Thanks, Robert Schwartz -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/