On 12/01/2011 07:13 AM, Jason Merrill wrote:
Ah, I see. I guess what we want here is the GCC 4.5 version of locate_ctor instead of the new one; once we've checked that we have a default ctor and no user-provided default ctor, there must be a unique defaulted ctor so just walking CLASSTYPE_CONSTRUCTORS is correct. And then we can call maybe_explain_implicit_delete if it's deleted.
Ok, thanks for the guidance, I'll work along those lines.
Paolo.