Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 68851 invoked from network); 20 May 2008 21:35:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 May 2008 21:35:59 -0000 Received: (qmail 96496 invoked by uid 500); 20 May 2008 21:36:00 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 96477 invoked by uid 500); 20 May 2008 21:36:00 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 96466 invoked by uid 99); 20 May 2008 21:36:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 14:36:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.roguewave.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 21:35:08 +0000 Received: from nebula.bco.roguewave.com ([10.70.3.27]) by moroha.roguewave.com (8.13.6/8.13.6) with ESMTP id m4KLZS8N026655 for ; Tue, 20 May 2008 21:35:29 GMT Message-ID: <48334421.1030307@roguewave.com> Date: Tue, 20 May 2008 15:35:29 -0600 From: Martin Sebor Organization: Rogue Wave Software, Inc. User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: dev@stdcxx.apache.org Subject: Re: svn commit: r654588 - /stdcxx/branches/4.2.x/tests/localization/22.locale.synopsis.cpp References: <20080508174911.DBAB0238898F@eris.apache.org> In-Reply-To: <20080508174911.DBAB0238898F@eris.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org elemings@apache.org wrote: > Author: elemings > Date: Thu May 8 10:48:37 2008 > New Revision: 654588 > > URL: http://svn.apache.org/viewvc?rev=654588&view=rev > Log: > 2008-05-08 Eric Lemings > > STDCXX-905 > * branches/4.2.x/tests/localization/22.locale.synopsis.cpp: > Added collate class template specialization for UDC type (just > prior to CollateDerived class template) to define protected > virtual functions expected by test cases. This change appears to be causing compilation errors with HP aCC 3.74: aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -AA +O2 +w +W392,655,684,818,819,849 $(TOPDIR)/tests/localization/22.locale.synopsis.cpp Error 173: "$(TOPDIR)/tests/localization/22.locale.synopsis.cpp", line 1349 # Redefined symbol 'collate'; previously defined at ["$(TOPDIR)/include/loc/_collate.h", line 58]. struct collate: locale::facet ^^^^^^^^^^^^^^^^^^^ Error 705: "$(TOPDIR)/tests/localization/22.locale.synopsis.cpp", line 1348 # A template must be declared before it can be explicitly specialized. _RWSTD_SPECIALIZED_CLASS ^^^^^^^^^^^^^^^^^^^^^^^^ Error 445: "$(TOPDIR)/tests/localization/22.locale.synopsis.cpp", line 1348 # Cannot recover from earlier errors. _RWSTD_SPECIALIZED_CLASS ^^^^^^^^^^^^^^^^^^^^^^^^ gmake: *** [22.locale.synopsis.o] Error 2 Martin > > > Modified: > stdcxx/branches/4.2.x/tests/localization/22.locale.synopsis.cpp > > Modified: stdcxx/branches/4.2.x/tests/localization/22.locale.synopsis.cpp > URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/localization/22.locale.synopsis.cpp?rev=654588&r1=654587&r2=654588&view=diff > ============================================================================== > --- stdcxx/branches/4.2.x/tests/localization/22.locale.synopsis.cpp (original) > +++ stdcxx/branches/4.2.x/tests/localization/22.locale.synopsis.cpp Thu May 8 10:48:37 2008 > @@ -1342,6 +1342,53 @@ > > // collate category > > +_RWSTD_NAMESPACE (std) { > + > +// class template specialization for UDC type > +_RWSTD_SPECIALIZED_CLASS > +struct collate: locale::facet > +{ > + typedef UDC char_type; > + typedef basic_string string_type; > + > + static locale::id id; > + > + int > + compare (const char_type* begin1, const char_type* end1, > + const char_type* begin2, const char_type* end2) const { > + return do_compare (begin1, end1, begin2, end2) ; > + } > + > +protected: > + > + // define (no-op) virtual functions for UDC type > + virtual int > + do_compare (const char_type*, const char_type*, > + const char_type*, const char_type*) const > + { > + return int (); > + } > + > + virtual string_type > + do_transform (const char_type*, const char_type*) const > + { > + return string_type (); > + } > + > + > + virtual long > + do_hash (const char_type*, const char_type*) const > + { > + return long (); > + } > + > +}; > + > +locale::id collate::id; > + > +} // namespace std > + > + > template > struct CollateDerived: std::collate > { > >