This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: V3 PATCH: Insert `typename' and `ios_base::' where required


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]