C++14 implementation status
Marc Glisse
marc.glisse@inria.fr
Wed Jun 12 15:04:00 GMT 2013
On Mon, 10 Jun 2013, Ulrich Drepper wrote:
> On Mon, Jun 10, 2013 at 11:45 AM, Marc Glisse <marc.glisse@inria.fr> wrote:
>> void f(int n, void *p=alloca(n));
>
> Before anyone uses this as an example, it is really wrong to use
> alloca inside a parameter list. The alloca allocation might interfere
> with pushing parameters on the stack for function calls. This was at
> least true for older compilers but I think it's still a valid concern.
Ah, I hadn't thought of that.
Anyway, people on std-proposals have brought up issues with copy elision
that seem hard to handle without compiler magic.
--
Marc Glisse
More information about the Libstdc++
mailing list