https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114600
--- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> --- (In reply to Nathaniel Shead from comment #4) > In general we don't yet implement merging of textual redefinitions; I guess > this ultimately falls under that, but I'm not sure we have a dedicated bug > report for that yet? Maybe PR99000. Makes sense. > I'm not yet sure exactly why my patch caused this to start failing though; > it sounds like it's exporting some using-decls even though they aren't > directly exported, which I suppose is still a bug in its own right. Hmm, should the check added to add_binding_entity flags & (WMB_Using | WMB_Export) instead be (flags & WMB_Using) && (flags & WMB_Export) ?