Placement new versus flifetime-dse
Andrew Haley
aph@redhat.com
Tue Feb 16 14:27:00 GMT 2016
On 02/16/2016 01:16 PM, Jakub Jelinek wrote:
>> > Can someone please tell me Chapter and Verse in the standard, please?
>> > Then I can close this one.
> I'd think [basic.life] describes this.
For the record, I found it in C++98 [class.cdtor]:
For an object of non-POD class type ... before the constructor
begins execution ... referring to any non-static member or base
class of the object results in undefined behavior
Thanks,
Andrew.
More information about the Gcc
mailing list