This is the mail archive of the gcc-patches@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] |
Other format: | [Raw text] |
Hi,thus I have this simple patch which at least catches pure self-delegation (no cycles). Better than nothing, I would say, given its simplicity ;)
At first I thought I would put the check in expand_default_init but then I noticed that in case of, eg, virtual bases, the simple pattern matching (which looks inside CALL_EXPRs) would miss some cases, like when the self-delegation is only in the derived type, not in the base.
Tested x86_64-linux. Thanks! Paolo. /////////////////////////////
Attachment:
CL_51424
Description: Text document
Attachment:
patch_51424
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |