[fpc-devel] Need patch for bugs : 0011503 / 0009472

Boian Mitov mitov at mitov.com
Thu Jun 19 15:25:48 CEST 2008

   Hi Marco,

I have found it :-)
This is one of the draft, but that part has hardly changed:


Page 244
Item 3 describes the lifespan of a temporary object in expression (rvalue 
life span):

3 When an implementation introduces a temporary object of a class that has a 
non-trivial constructor (12.1, 12.8), it shall

ensure that a constructor is called for the temporary object. Similarly, the 
destructor shall be called for a temporary

with a non-trivial destructor (12.4). Temporary objects are destroyed as the 
last step in evaluating the full-expression

(1.9) that (lexically) contains the point where they were created. This is 
true even if that evaluation ends in throwing

an exception. The value computations and side effects of destroying a 
temporary object are associated only with the

full-expression, not with any specific subexpression.

  With best regards,
    Boian Mitov

Mitov Software

----- Original Message ----- 
From: "Marco van de Voort" <marcov at stack.nl>
To: "FPC developers' list" <fpc-devel at lists.freepascal.org>
Sent: Thursday, June 19, 2008 5:54 AM
Subject: Re: [fpc-devel] Need patch for bugs : 0011503 / 0009472

>> I will see to ping somebody on the ANSI comity for this one. It takes
>> forever to dig it out ;-) . I will let you know.
> Thanks.
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel 

More information about the fpc-devel mailing list