V3 PATCH: Insert `typename' and `ios_base::' where required
Gabriel Dos Reis
gdr@codesourcery.com
Thu Feb 15 21:52:00 GMT 2001
Mark Mitchell <mark@codesourcery.com> writes:
| >>>>> "Richard" == Richard Henderson <rth@redhat.com> writes:
|
| Richard> On Thu, Feb 15, 2001 at 07:44:23PM -0800, Mark Mitchell
| Richard> wrote:
| >> char_type __pads[__plen];
|
| Richard> Do yall support
|
| Richard> __extension__ char_type __pads[__plen];
|
| Well, sort-of.
|
| We do -- but when we do template instantiation we forget that
| __extension__ was specified. So, in a template instantiation this
| doesn't work. Fixing that is doable, but non-trivial.
Since, that is pretty much equivalent to calling __bultin_alloca(),
I think we can go with
char_type* __pads = __builtin_alloca(__plen * sizeof(char_type));
(But we would have loved the much simplified syntaxe).
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
More information about the Libstdc++
mailing list