https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78661
--- Comment #19 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- (In reply to janus from comment #18) > Created attachment 40364 [details] > 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). I would suggest committing this with no internal unit test or those parts commented out and then when I do get 78854 fixed we can update the test or add a new one.