This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] implement std::collate
- To: <gcc-patches at gcc dot gnu dot org>, <libstdc++ at gcc dot gnu dot org>, "Benjamin Kosnik" <bkoz at redhat dot com>
- Subject: Re: [v3] implement std::collate
- From: "Vladimir A Merzliakov" <wanderer at rsu dot ru>
- Date: Sat, 18 Aug 2001 12:42:10 +0400
- References: <200108180251.f7I2p9B15562@constant.com>
After this patch my program break with error
g++ -MD -fexceptions -W -Wall -Werror -O -Wuninitialized -Wredundant-decls
-pedantic -ansi -march=athlon -mcpu=athlon -I/h
ome/wanderer/work/cpp/include -DDEBUGLOG -o
/home/wanderer/work/cpp/include/WCL/Console.o -c
/home/wanderer/work/cpp/include/W
CL/Console.cc
In file included from
/home/wanderer/pkg/gcc/include/g++/bits/std_locale.h:41,
from
/home/wanderer/pkg/gcc/include/g++/bits/ostream.tcc:32,
from
/home/wanderer/pkg/gcc/include/g++/bits/std_ostream.h:278,
from
/home/wanderer/pkg/gcc/include/g++/bits/std_iostream.h:40,
from /home/wanderer/pkg/gcc/include/g++/iostream:31,
from /home/wanderer/work/cpp/include/WCL/String.hcc:9,
from /home/wanderer/work/cpp/include/WCL/Console.cc:3:
/home/wanderer/pkg/gcc/include/g++/bits/locale_facets.tcc: In member
function
`virtual std::basic_string<C, std::char_traits<_CharT>,
std::allocator<_CharT> > std::collate<_CharT>::do_transform(const
_CharT*,
const _CharT*) const':
/home/wanderer/pkg/gcc/include/g++/bits/locale_facets.tcc:1258: parse error
before `=' token
gmake: *** [/home/wanderer/work/cpp/include/WCL/Console.o] Error 1
at line
> string_type::size_type __newsize = __trans.size() * 2;
I think this line must be:
typename string_type::size_type __newsize = __trans.size() * 2;
^^^^^^^^^^^
With this fix it build without problems.
Vladimir