https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93033
Bug ID: 93033 Summary: error: incorrect sharing of tree nodes Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 47536 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47536&action=edit gzipped C++ source code For the attached C++ code on recent gcc trunk, I get ../dialogs/StartDialog.cpp: In constructor ‘StartDialog::StartDialog()’: ../dialogs/StartDialog.cpp:51:1: error: incorrect sharing of tree nodes *D.113735 D.113735->option = LangResource::getKey (&D.113738, &D.113740); [return slot opt imization] The bug first appears sometime between revision 279550 and 279600. I will try to reduce the code to something smaller.