https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122955
--- Comment #13 from Dhruv Chawla <dhruvc at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #12) > Created attachment 62974 [details] > patch to try > > Can you try this patch? > > Basically chain_next/chain_prev is only taken into account from the base > class. Thanks for the patch, this does seem to fix it!
