This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Further observations regarding alloca on i586-pc-linux-gnu
- To: zabluda at math dot psu dot edu (Oleg Zabluda)
- Subject: Re: Further observations regarding alloca on i586-pc-linux-gnu
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 27 Aug 1998 17:36:16 -0300
- Cc: egcs at cygnus dot com
- References: <199808261635.MAA15528@riemann.math.psu.edu>
Oleg Zabluda <zabluda@math.psu.edu> writes:
> In article <199808250624.IAA00271@mira.isdn.cs.tu-berlin.de> you wrote:
> : void f(char * = std::auto_ptr<char*>(new char[20]));
> 2. My understanding is that the default arguments have static
> storage duration. This is not what was intended.
The Standard says [dcl.fct.default]
9 Default arguments are evaluated each time the function is called.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil