https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122995
--- Comment #3 from W E Brown <webrown.cpp at gmail dot com> --- (In reply to Nathaniel Shead from comment #2) ... > Adding '|| (STAT_HACK_P ((tree) slot) && STAT_DECL ((tree) slot) == ns)' > should fix the assertion, ... I confirm that the posted patch fixes the issue as reported, and look forward to having it merged in the near future. Thank you.
