https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78661
janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #40357|0 |1 is obsolete| | --- Comment #18 from janus at gcc dot gnu.org --- Created attachment 40364 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40364&action=edit updated patch Here is an updated patch, which fixes all wrong-code issues AFAICS. It includes improved handling of CLASS-vs-TYPE variables (analogous to PR 78848) and a full-featured test case (which currently fails due to PR 78854). Note that the patch does not handle the rejects-valid problem of comment 5 (which rather belong into PR 78659).