This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: V3 PATCH: Insert `typename' and `ios_base::' where required
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: V3 PATCH: Insert `typename' and `ios_base::' where required
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Thu, 15 Feb 2001 19:51:48 -0800 (PST)
- cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
> didn't get enough testing. Turning that on doesn't work because the
> .tcc files that get included aren't legal C++. Bummer.
weird. I bootstrapped it and tested it. I didn't notice any new failures,
just the slowdown.
If you are having problems, just revert it temporarily.
> Most of the problems are fixed with this patch. There were missing
> `ios_base::' references and missing `typename' keywords.
ugh.
> What I couldn't figure out how to fix, however, was:
>
> int_type __plen = static_cast<size_t>(__newlen - __oldlen);
> char_type __pads[__plen];
>
> and such in ostream.tcc. This is invalid C++; it uses a
> variable-sized array. The options are:
>
> 1. Change the algorithm somehow.
>
> 2. Dynamically allocate the memory.
i'll look at it