This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: C++14 implementation status
- From: Ulrich Drepper <drepper at gmail dot com>
- To: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Cc: Ed Smith-Rowland <3dw4rd at verizon dot net>, Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Date: Mon, 10 Jun 2013 14:08:39 -0400
- Subject: Re: C++14 implementation status
- References: <CAH6eHdQb=PhvSVhE79Gv_0CxNq1PNDAtnHqRN+qAHn3-rhtWzA at mail dot gmail dot com> <51B5EFD6 dot 4060806 at verizon dot net> <alpine dot DEB dot 2 dot 10 dot 1306101735450 dot 28948 at stedding dot saclay dot inria dot fr>
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.