On 05/18/2018 10:12 AM, Jakub Jelinek wrote:

Or is it invalid to dereference s before it has been constructed?

Yes, Marc found:

"During the construction of an object, if the value of the object or any of its subobjects is accessed through a glvalue that is not obtained, directly or indirectly, from the constructor’s this pointer, the value of the object or subobject thus obtained is unspecified."

nathan
--
Nathan Sidwell

Reply via email to