https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96084
--- Comment #1 from anlauf at gcc dot gnu.org --- It appears that after the fix for pr106856 (CLASS attributes) we get the right error messages now, and also valgrind suggests there is nothing left. I tend to mark this PR as a duplicate.