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::' whererequired


>>>>> "Richard" == Richard Henderson <rth@redhat.com> writes:

    Richard> On Thu, Feb 15, 2001 at 09:47:53PM -0800, Mark Mitchell
    Richard> wrote:
    >> 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.

    Richard> Oh, right.  Well, there's always alloca...

Nope, not in this case...  We have no way of knowing what CharT will
be, and it good be something that needs a constructor run, etc.

So, I think ugliness involving actual dynamic allocation will end up
being necessary -- unless master-of-library-arcana Benjamin can figure
out a way to avoid allocating the array at all...

--
Mark Mitchell                   mark@codesourcery.com
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]