This is the mail archive of the gcc@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: Further observations regarding alloca on i586-pc-linux-gnu


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



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